org.bouncycastle.asn1.pkcs
Class SignerInfo
java.lang.Object
|
+--org.bouncycastle.asn1.ASN1Object
|
+--org.bouncycastle.asn1.pkcs.SignerInfo
- All Implemented Interfaces:
- ASN1Encodable, Encodable
- public class SignerInfo
- extends ASN1Object
a PKCS#7 signer info object.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SignerInfo
public SignerInfo(ASN1Integer version,
IssuerAndSerialNumber issuerAndSerialNumber,
AlgorithmIdentifier digAlgorithm,
ASN1Set authenticatedAttributes,
AlgorithmIdentifier digEncryptionAlgorithm,
ASN1OctetString encryptedDigest,
ASN1Set unauthenticatedAttributes)
SignerInfo
public SignerInfo(ASN1Sequence seq)
getInstance
public static SignerInfo getInstance(java.lang.Object o)
getVersion
public ASN1Integer getVersion()
getIssuerAndSerialNumber
public IssuerAndSerialNumber getIssuerAndSerialNumber()
getAuthenticatedAttributes
public ASN1Set getAuthenticatedAttributes()
getDigestAlgorithm
public AlgorithmIdentifier getDigestAlgorithm()
getEncryptedDigest
public ASN1OctetString getEncryptedDigest()
getDigestEncryptionAlgorithm
public AlgorithmIdentifier getDigestEncryptionAlgorithm()
getUnauthenticatedAttributes
public ASN1Set getUnauthenticatedAttributes()
toASN1Primitive
public ASN1Primitive toASN1Primitive()
- Produce an object suitable for an ASN1OutputStream.
SignerInfo ::= SEQUENCE {
version Version,
issuerAndSerialNumber IssuerAndSerialNumber,
digestAlgorithm DigestAlgorithmIdentifier,
authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL,
digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier,
encryptedDigest EncryptedDigest,
unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL
}
EncryptedDigest ::= OCTET STRING
DigestAlgorithmIdentifier ::= AlgorithmIdentifier
DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
- Overrides:
toASN1Primitive
in class ASN1Object
- Following copied from class:
org.bouncycastle.asn1.ASN1Object
- Returns:
- a primitive representation of this object.