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 void
derEncode(java.io.OutputStream out)
DER encode this object onto an output stream.void
encode(DerOutputStream out)
PKCS9Attributes
getAuthenticatedAttributes()
java.security.cert.X509Certificate
getCertificate(PKCS7 block)
BigInt
getCertificateSerialNumber()
AlgorithmId
getDigestAlgorithmId()
AlgorithmId
getDigestEncryptionAlgorithmId()
byte[]
getEncryptedDigest()
X500Name
getIssuerName()
PKCS9Attributes
getUnauthenticatedAttributes()
BigInt
getVersion()
java.lang.String
toString()
-
-
-
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.IOException
ParsingException
-
-
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.IOException
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:
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:
toString
in classjava.lang.Object
-
-