Package org.bouncycastle.asn1.cms
Class SignerInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.SignerInfo
- All Implemented Interfaces:
ASN1Encodable
public class SignerInfo extends ASN1Object
-
Constructor Summary
Constructors Constructor Description SignerInfo(ASN1Sequence seq)Deprecated.use getInstance() method.SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes)SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, Attributes unauthenticatedAttributes) -
Method Summary
Modifier and Type Method Description ASN1SetgetAuthenticatedAttributes()AlgorithmIdentifiergetDigestAlgorithm()AlgorithmIdentifiergetDigestEncryptionAlgorithm()ASN1OctetStringgetEncryptedDigest()static SignerInfogetInstance(Object o)SignerIdentifiergetSID()ASN1SetgetUnauthenticatedAttributes()ASN1IntegergetVersion()ASN1PrimitivetoASN1Primitive()Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Constructor Details
-
SignerInfo
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes) -
SignerInfo
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, Attributes unauthenticatedAttributes) -
SignerInfo
Deprecated.use getInstance() method.
-
-
Method Details
-
getInstance
- Throws:
IllegalArgumentException
-
getVersion
-
getSID
-
getAuthenticatedAttributes
-
getDigestAlgorithm
-
getEncryptedDigest
-
getDigestEncryptionAlgorithm
-
getUnauthenticatedAttributes
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.SignerInfo ::= SEQUENCE { version Version, SignerIdentifier sid, digestAlgorithm DigestAlgorithmIdentifier, authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, encryptedDigest EncryptedDigest, unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL } EncryptedDigest ::= OCTET STRING DigestAlgorithmIdentifier ::= AlgorithmIdentifier DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-