Class SignerInfo
java.lang.Object
org.mozilla.jss.netscape.security.pkcs.SignerInfo
- All Implemented Interfaces:
DerEncoder
A SignerInfo, as defined in PKCS#7's signedData type.
-
Constructor Summary
ConstructorsConstructorDescriptionSignerInfo
(DerInputStream derin) SignerInfo
(X500Name issuerName, BigInt serial, AlgorithmId digestAlgorithmId, PKCS9Attributes authenticatedAttributes, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest, PKCS9Attributes unauthenticatedAttributes) SignerInfo
(X500Name issuerName, BigInt serial, AlgorithmId digestAlgorithmId, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest) -
Method Summary
Modifier and TypeMethodDescriptionvoid
derEncode
(OutputStream out) DER encode this object onto an output stream.void
encode
(DerOutputStream out) getCertificate
(PKCS7 block) byte[]
toString()
-
Constructor Details
-
SignerInfo
public SignerInfo(X500Name issuerName, BigInt serial, AlgorithmId digestAlgorithmId, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest) -
SignerInfo
public SignerInfo(X500Name issuerName, BigInt serial, AlgorithmId digestAlgorithmId, PKCS9Attributes authenticatedAttributes, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest, PKCS9Attributes unauthenticatedAttributes) -
SignerInfo
- Throws:
IOException
ParsingException
-
-
Method Details
-
encode
- Throws:
IOException
-
derEncode
DER encode this object onto an output stream. Implements theDerEncoder
interface.- Specified by:
derEncode
in interfaceDerEncoder
- Parameters:
out
- the output stream on which to write the DER encoding.- Throws:
IOException
- on encoding error.
-
getCertificate
- Throws:
IOException
-
getVersion
-
getIssuerName
-
getCertificateSerialNumber
-
getDigestAlgorithmId
-
getAuthenticatedAttributes
-
getDigestEncryptionAlgorithmId
-
getEncryptedDigest
public byte[] getEncryptedDigest() -
getUnauthenticatedAttributes
-
toString
-