Class SignerInfo
- java.lang.Object
-
- org.mozilla.jss.netscape.security.pkcs.SignerInfo
-
- All Implemented Interfaces:
DerEncoder
public class SignerInfo extends java.lang.Object implements DerEncoder
A SignerInfo, as defined in PKCS#7's signedData type.
-
-
Constructor Summary
Constructors Constructor Description SignerInfo(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderEncode(java.io.OutputStream out)DER encode this object onto an output stream.voidencode(DerOutputStream out)PKCS9AttributesgetAuthenticatedAttributes()java.security.cert.X509CertificategetCertificate(PKCS7 block)BigIntgetCertificateSerialNumber()AlgorithmIdgetDigestAlgorithmId()AlgorithmIdgetDigestEncryptionAlgorithmId()byte[]getEncryptedDigest()X500NamegetIssuerName()PKCS9AttributesgetUnauthenticatedAttributes()BigIntgetVersion()java.lang.StringtoString()
-
-
-
Constructor Detail
-
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
public SignerInfo(DerInputStream derin) throws java.io.IOException, ParsingException
- Throws:
java.io.IOExceptionParsingException
-
-
Method Detail
-
encode
public void encode(DerOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
derEncode
public void derEncode(java.io.OutputStream out) throws java.io.IOExceptionDER encode this object onto an output stream. Implements theDerEncoderinterface.- Specified by:
derEncodein interfaceDerEncoder- Parameters:
out- the output stream on which to write the DER encoding.- Throws:
java.io.IOException- on encoding error.
-
getCertificate
public java.security.cert.X509Certificate getCertificate(PKCS7 block) throws java.io.IOException
- Throws:
java.io.IOException
-
getVersion
public BigInt getVersion()
-
getIssuerName
public X500Name getIssuerName()
-
getCertificateSerialNumber
public BigInt getCertificateSerialNumber()
-
getDigestAlgorithmId
public AlgorithmId getDigestAlgorithmId()
-
getAuthenticatedAttributes
public PKCS9Attributes getAuthenticatedAttributes()
-
getDigestEncryptionAlgorithmId
public AlgorithmId getDigestEncryptionAlgorithmId()
-
getEncryptedDigest
public byte[] getEncryptedDigest()
-
getUnauthenticatedAttributes
public PKCS9Attributes getUnauthenticatedAttributes()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-