OIDs
Overview
OIDs is a class in Aspose.PDF FOSS for Java.
Well-known OID constants for PKCS#7, X.509, and PDF signatures.
This class provides 5 methods for working with OIDs objects in Java programs.
Available methods include: digestToOID, signatureAlgorithmForDigest, signatureToOID, toJCADigest, toJCASignature.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: CONTENT_TYPE, DATA, MD5, MESSAGE_DIGEST, RSA_ENCRYPTION, SHA1, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
DATA | String | Read | Gets the data. |
SIGNED_DATA | String | Read | Gets the signed data. |
MD5 | String | Read | Gets the md5. |
SHA1 | String | Read | Gets the sha1. |
SHA256 | String | Read | Gets the sha256. |
SHA384 | String | Read | Gets the sha384. |
SHA512 | String | Read | Gets the sha512. |
RSA_ENCRYPTION | String | Read | Gets the rsa encryption. |
SHA1_WITH_RSA | String | Read | Gets the sha1 with rsa. |
SHA256_WITH_RSA | String | Read | Gets the sha256 with rsa. |
SHA384_WITH_RSA | String | Read | Gets the sha384 with rsa. |
SHA512_WITH_RSA | String | Read | Gets the sha512 with rsa. |
CONTENT_TYPE | String | Read | Gets the content type. |
MESSAGE_DIGEST | String | Read | Gets the message digest. |
SIGNING_TIME | String | Read | Gets the signing time. |
Methods
| Signature | Description |
|---|---|
toJCADigest(oid: String) → String | Maps OID to JCA digest algorithm name. |
toJCASignature(oid: String) → String | Maps OID to JCA signature algorithm name. |
digestToOID(jcaName: String) → String | Maps JCA digest name to OID. |
signatureToOID(jcaName: String) → String | Maps JCA signature name to OID. |
signatureAlgorithmForDigest(digestAlg: String) → String | Returns the JCA signature algorithm for a digest + RSA combo. |