com.itextpdf.text.pdf.security
Class DigestAlgorithms

java.lang.Object
  extended by com.itextpdf.text.pdf.security.DigestAlgorithms

public class DigestAlgorithms
extends Object

Class that contains a map with the different message digest algorithms.


Field Summary
static String RIPEMD160
          Algorithm available for signatures since PDF 1.7
static String SHA1
          Algorithm available for signatures since PDF 1.3
static String SHA256
          Algorithm available for signatures since PDF 1.6
static String SHA384
          Algorithm available for signatures since PDF 1.7
static String SHA512
          Algorithm available for signatures since PDF 1.7
 
Constructor Summary
DigestAlgorithms()
           
 
Method Summary
static String getAllowedDigests(String name)
          Returns the id of a digest algorithms that is allowed in PDF, or null if it isn't allowed.
static String getDigest(String oid)
          Gets the digest name for a certain id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHA1

public static final String SHA1
Algorithm available for signatures since PDF 1.3

See Also:
Constant Field Values

SHA256

public static final String SHA256
Algorithm available for signatures since PDF 1.6

See Also:
Constant Field Values

SHA384

public static final String SHA384
Algorithm available for signatures since PDF 1.7

See Also:
Constant Field Values

SHA512

public static final String SHA512
Algorithm available for signatures since PDF 1.7

See Also:
Constant Field Values

RIPEMD160

public static final String RIPEMD160
Algorithm available for signatures since PDF 1.7

See Also:
Constant Field Values
Constructor Detail

DigestAlgorithms

public DigestAlgorithms()
Method Detail

getDigest

public static String getDigest(String oid)
Gets the digest name for a certain id

Parameters:
oid - an id (for instance "1.2.840.113549.2.5")
Returns:
a digest name (for instance "MD5")

getAllowedDigests

public static String getAllowedDigests(String name)
Returns the id of a digest algorithms that is allowed in PDF, or null if it isn't allowed.

Parameters:
name - the name of the digest algorithm
Returns:
an oid


Copyright © 2012. All Rights Reserved.