public class SignerInfo extends java.lang.Object implements DerEncoder
Constructor and Description |
---|
SignerInfo(DerInputStream derin) |
SignerInfo(X500Name issuerName,
BigInt serial,
AlgorithmId digestAlgorithmId,
AlgorithmId digestEncryptionAlgorithmId,
byte[] encryptedDigest) |
SignerInfo(X500Name issuerName,
BigInt serial,
AlgorithmId digestAlgorithmId,
PKCS9Attributes authenticatedAttributes,
AlgorithmId digestEncryptionAlgorithmId,
byte[] encryptedDigest,
PKCS9Attributes unauthenticatedAttributes) |
Modifier and Type | Method and 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() |
public SignerInfo(X500Name issuerName, BigInt serial, AlgorithmId digestAlgorithmId, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest)
public SignerInfo(X500Name issuerName, BigInt serial, AlgorithmId digestAlgorithmId, PKCS9Attributes authenticatedAttributes, AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest, PKCS9Attributes unauthenticatedAttributes)
public SignerInfo(DerInputStream derin) throws java.io.IOException, ParsingException
java.io.IOException
ParsingException
public void encode(DerOutputStream out) throws java.io.IOException
java.io.IOException
public void derEncode(java.io.OutputStream out) throws java.io.IOException
DerEncoder
interface.derEncode
in interface DerEncoder
out
- the output stream on which to write the DER encoding.java.io.IOException
- on encoding error.public java.security.cert.X509Certificate getCertificate(PKCS7 block) throws java.io.IOException
java.io.IOException
public BigInt getVersion()
public X500Name getIssuerName()
public BigInt getCertificateSerialNumber()
public AlgorithmId getDigestAlgorithmId()
public PKCS9Attributes getAuthenticatedAttributes()
public AlgorithmId getDigestEncryptionAlgorithmId()
public byte[] getEncryptedDigest()
public PKCS9Attributes getUnauthenticatedAttributes()
public java.lang.String toString()
toString
in class java.lang.Object