Package com.itextpdf.text.pdf.security
Class EncryptionAlgorithms
- java.lang.Object
-
- com.itextpdf.text.pdf.security.EncryptionAlgorithms
-
public class EncryptionAlgorithms extends java.lang.ObjectClass that contains a map with the different encryption algorithms.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.HashMap<java.lang.String,java.lang.String>algorithmNamesMaps IDs of encryption algorithms with its human-readable name.
-
Constructor Summary
Constructors Constructor Description EncryptionAlgorithms()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaddAlgorithm(java.lang.String oid, java.lang.String name)Allows new oid to be added.static java.lang.StringgetAlgorithm(java.lang.String oid)Gets the algorithm name for a certain id.
-
-
-
Method Detail
-
getAlgorithm
public static java.lang.String getAlgorithm(java.lang.String oid)
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
public static boolean addAlgorithm(java.lang.String oid, java.lang.String name) throws java.security.GeneralSecurityExceptionAllows new oid to be added.- Parameters:
oid-name-- Throws:
java.security.GeneralSecurityException
-
-