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

NameTypeAccessDescription
DATAStringReadGets the data.
SIGNED_DATAStringReadGets the signed data.
MD5StringReadGets the md5.
SHA1StringReadGets the sha1.
SHA256StringReadGets the sha256.
SHA384StringReadGets the sha384.
SHA512StringReadGets the sha512.
RSA_ENCRYPTIONStringReadGets the rsa encryption.
SHA1_WITH_RSAStringReadGets the sha1 with rsa.
SHA256_WITH_RSAStringReadGets the sha256 with rsa.
SHA384_WITH_RSAStringReadGets the sha384 with rsa.
SHA512_WITH_RSAStringReadGets the sha512 with rsa.
CONTENT_TYPEStringReadGets the content type.
MESSAGE_DIGESTStringReadGets the message digest.
SIGNING_TIMEStringReadGets the signing time.

Methods

SignatureDescription
toJCADigest(oid: String)StringMaps OID to JCA digest algorithm name.
toJCASignature(oid: String)StringMaps OID to JCA signature algorithm name.
digestToOID(jcaName: String)StringMaps JCA digest name to OID.
signatureToOID(jcaName: String)StringMaps JCA signature name to OID.
signatureAlgorithmForDigest(digestAlg: String)StringReturns the JCA signature algorithm for a digest + RSA combo.

See Also

 English