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.
- Version:
- 1.27 97/12/10
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PKCS9Attributes
(package private) BigInt
(package private) AlgorithmId
(package private) AlgorithmId
(package private) byte[]
(package private) X500Name
(package private) PKCS9Attributes
(package private) BigInt
-
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()
(package private) SignerInfo
(package private) SignerInfo
-
Field Details
-
version
BigInt version -
issuerName
X500Name issuerName -
certificateSerialNumber
BigInt certificateSerialNumber -
digestAlgorithmId
AlgorithmId digestAlgorithmId -
digestEncryptionAlgorithmId
AlgorithmId digestEncryptionAlgorithmId -
encryptedDigest
byte[] encryptedDigest -
authenticatedAttributes
PKCS9Attributes authenticatedAttributes -
unauthenticatedAttributes
PKCS9Attributes unauthenticatedAttributes
-
-
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
-
verify
-
verify
-
getVersion
-
getIssuerName
-
getCertificateSerialNumber
-
getDigestAlgorithmId
-
getAuthenticatedAttributes
-
getDigestEncryptionAlgorithmId
-
getEncryptedDigest
public byte[] getEncryptedDigest() -
getUnauthenticatedAttributes
-
toString
-