Package com.itextpdf.text.pdf.security
Class EncryptionAlgorithms
java.lang.Object
com.itextpdf.text.pdf.security.EncryptionAlgorithms
Class that contains a map with the different encryption algorithms.
-
Field Summary
FieldsModifier and TypeFieldDescriptionMaps IDs of encryption algorithms with its human-readable name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addAlgorithm
(String oid, String name) Allows new oid to be added.static String
getAlgorithm
(String oid) Gets the algorithm name for a certain id.
-
Field Details
-
algorithmNames
Maps IDs of encryption algorithms with its human-readable name.
-
-
Constructor Details
-
EncryptionAlgorithms
public EncryptionAlgorithms()
-
-
Method Details
-
getAlgorithm
Gets the algorithm name for a certain id.- Parameters:
oid
- an id (for instance "1.2.840.113549.1.1.1")- Returns:
- an algorithm name (for instance "RSA")
-
addAlgorithm
Allows new oid to be added.- Parameters:
oid
-name
-- Throws:
GeneralSecurityException
-