|
Bouncy Castle Cryptography 1.50 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.SignerInfo
public class SignerInfo
RFC 5652:
Signature container per Signer, see SignerIdentifier
.
PKCS#7: SignerInfo ::= SEQUENCE { version Version, sid SignerIdentifier, digestAlgorithm DigestAlgorithmIdentifier, authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, encryptedDigest EncryptedDigest, unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL } EncryptedDigest ::= OCTET STRING DigestAlgorithmIdentifier ::= AlgorithmIdentifier DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier ----------------------------------------- RFC 5256: SignerInfo ::= SEQUENCE { version CMSVersion, sid SignerIdentifier, digestAlgorithm DigestAlgorithmIdentifier, signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL, signatureAlgorithm SignatureAlgorithmIdentifier, signature SignatureValue, unsignedAttrs [1] IMPLICIT UnsignedAttributes OPTIONAL } --SignerIdentifier
referenced certificates are at containing --SignedData
certificates element. SignerIdentifier ::= CHOICE { issuerAndSerialNumberIssuerAndSerialNumber
, subjectKeyIdentifier [0] SubjectKeyIdentifier } -- SeeAttributes
for generalized SET OFAttribute
SignedAttributes ::= SET SIZE (1..MAX) OF Attribute UnsignedAttributes ::= SET SIZE (1..MAX) OF AttributeAttribute
::= SEQUENCE { attrType OBJECT IDENTIFIER, attrValues SET OF AttributeValue } AttributeValue ::= ANY SignatureValue ::= OCTET STRING
Constructor Summary | |
---|---|
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 | |
---|---|
ASN1Set |
getAuthenticatedAttributes()
|
AlgorithmIdentifier |
getDigestAlgorithm()
|
AlgorithmIdentifier |
getDigestEncryptionAlgorithm()
|
ASN1OctetString |
getEncryptedDigest()
|
static SignerInfo |
getInstance(java.lang.Object o)
Return a SignerInfo object from the given input |
SignerIdentifier |
getSID()
|
ASN1Set |
getUnauthenticatedAttributes()
|
ASN1Integer |
getVersion()
|
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
---|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes)
sid
- digAlgorithm
- CMS knows as 'digestAlgorithm'authenticatedAttributes
- CMS knows as 'signedAttrs'digEncryptionAlgorithm
- CMS knows as 'signatureAlgorithm'encryptedDigest
- CMS knows as 'signature'unauthenticatedAttributes
- CMS knows as 'unsignedAttrs'public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, Attributes unauthenticatedAttributes)
sid
- digAlgorithm
- CMS knows as 'digestAlgorithm'authenticatedAttributes
- CMS knows as 'signedAttrs'digEncryptionAlgorithm
- CMS knows as 'signatureAlgorithm'encryptedDigest
- CMS knows as 'signature'unauthenticatedAttributes
- CMS knows as 'unsignedAttrs'public SignerInfo(ASN1Sequence seq)
Method Detail |
---|
public static SignerInfo getInstance(java.lang.Object o) throws java.lang.IllegalArgumentException
Accepted inputs:
SignerInfo
object
ASN1Sequence
input formats with SignerInfo structure inside
o
- the object we want converted.
java.lang.IllegalArgumentException
- if the object cannot be converted.public ASN1Integer getVersion()
public SignerIdentifier getSID()
public ASN1Set getAuthenticatedAttributes()
public AlgorithmIdentifier getDigestAlgorithm()
public ASN1OctetString getEncryptedDigest()
public AlgorithmIdentifier getDigestEncryptionAlgorithm()
public ASN1Set getUnauthenticatedAttributes()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
|
Bouncy Castle Cryptography 1.50 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |