iText 8.0.5 API
|
Class that contains a map with the different message digest algorithms. More...
Static Public Member Functions |
|
static IDigest | GetMessageDigestFromOid (String digestOid) |
Get a digest algorithm. More... |
|
static IDigest | GetMessageDigest (String hashAlgorithm) |
Creates a MessageDigest object that can be used to create a hash. More... |
|
static byte[] | Digest (Stream data, String hashAlgorithm) |
Creates a hash using a specific digest algorithm and a provider. More... |
|
static byte[] | Digest (Stream data, IDigest messageDigest) |
Create a digest based on the inputstream. More... |
|
static byte[] | Digest (Stream data, String hashAlgorithm, IExternalDigest externalDigest) |
Create a digest based on the inputstream. More... |
|
static String | GetDigest (String oid) |
Gets the digest name for a certain id. More... |
|
static String | GetAllowedDigest (String name) |
Returns the id of a digest algorithms that is allowed in PDF, or null if it isn't allowed. More... |
|
static int | GetOutputBitLength (String name) |
Retrieve the output length in bits of the given digest algorithm. More... |
|
Static Public Attributes |
|
const String | SHA1 = "SHA-1" |
Algorithm available for signatures since PDF 1.3. More... |
|
const String | SHA256 = "SHA-256" |
Algorithm available for signatures since PDF 1.6. More... |
|
const String | SHA384 = "SHA-384" |
Algorithm available for signatures since PDF 1.7. More... |
|
const String | SHA512 = "SHA-512" |
Algorithm available for signatures since PDF 1.7. More... |
|
const String | RIPEMD160 = "RIPEMD160" |
Algorithm available for signatures since PDF 1.7. More... |
|
const String | SHA3_256 = "SHA3-256" |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001. More... |
|
const String | SHA3_512 = "SHA3-512" |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001. More... |
|
const String | SHA3_384 = "SHA3-384" |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001. More... |
|
const String | SHAKE256 = "SHAKE256" |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001. More... |
|
Class that contains a map with the different message digest algorithms.
|
inlinestatic |
Create a digest based on the inputstream.
data | data to be digested |
messageDigest | algorithm to be used |
|
inlinestatic |
Creates a hash using a specific digest algorithm and a provider.
data | the message of which you want to create a hash |
hashAlgorithm | the algorithm used to create the hash |
|
inlinestatic |
Create a digest based on the inputstream.
data | data to be digested |
hashAlgorithm | algorithm to be used |
externalDigest | external digest to be used |
|
inlinestatic |
Returns the id of a digest algorithms that is allowed in PDF, or null if it isn't allowed.
name | The name of the digest algorithm. |
|
inlinestatic |
Gets the digest name for a certain id.
oid | an id (for instance "1.2.840.113549.2.5") |
|
inlinestatic |
Creates a MessageDigest object that can be used to create a hash.
hashAlgorithm | the algorithm you want to use to create a hash |
|
inlinestatic |
Get a digest algorithm.
digestOid | oid of the digest algorithm |
|
inlinestatic |
Retrieve the output length in bits of the given digest algorithm.
name | the name of the digest algorithm |
|
static |
Algorithm available for signatures since PDF 1.7.
|
static |
Algorithm available for signatures since PDF 1.3.
|
static |
Algorithm available for signatures since PDF 1.6.
|
static |
Algorithm available for signatures since PDF 1.7.
|
static |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001.
|
static |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001.
|
static |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001.
|
static |
Algorithm available for signatures since PDF 1.7.
|
static |
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001.
Algorithm available for signatures since PDF 2.0 extended by ISO/TS 32001.
The output length is fixed at 512 bits (64 bytes).