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 5652:
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 {
issuerAndSerialNumber IssuerAndSerialNumber,
subjectKeyIdentifier [0] SubjectKeyIdentifier }
-- See Attributes for generalized SET OF Attribute
SignedAttributes ::= SET SIZE (1..MAX) OF Attribute
UnsignedAttributes ::= SET SIZE (1..MAX) OF Attribute
Attribute ::= SEQUENCE {
attrType OBJECT IDENTIFIER,
attrValues SET OF AttributeValue }
AttributeValue ::= ANY
SignatureValue ::= OCTET STRING
| Modifier and Type | Field and Description |
|---|---|
| private ASN1Set | |
| private AlgorithmIdentifier | |
| private AlgorithmIdentifier | |
| private ASN1OctetString | |
| private SignerIdentifier | |
| private ASN1Set | |
| private ASN1Integer |
| Access | Constructor and Description |
|---|---|
| public | SignerInfo(SignerIdentifier sid, AlgorithmIdentifier
CMS knows as 'digestAlgorithm' digAlgorithm, ASN1Set CMS knows as 'signedAttrs' authenticatedAttributes, AlgorithmIdentifier CMS knows as 'signatureAlgorithm' digEncryptionAlgorithm, ASN1OctetString CMS knows as 'signature' encryptedDigest, ASN1Set CMS knows as 'unsignedAttrs' unauthenticatedAttributes)
|
| public | SignerInfo(SignerIdentifier sid, AlgorithmIdentifier
CMS knows as 'digestAlgorithm' digAlgorithm, Attributes CMS knows as 'signedAttrs' authenticatedAttributes, AlgorithmIdentifier CMS knows as 'signatureAlgorithm' digEncryptionAlgorithm, ASN1OctetString CMS knows as 'signature' encryptedDigest, Attributes CMS knows as 'unsignedAttrs' unauthenticatedAttributes)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ASN1Set | |
| public AlgorithmIdentifier | |
| public AlgorithmIdentifier | |
| public ASN1OctetString | |
| public static SignerInfo | getInstance(Object
the object we want converted. o)Return a SignerInfo object from the given input Accepted inputs:
|
| public SignerIdentifier | |
| public ASN1Set | |
| public ASN1Integer | |
| public ASN1Primitive | toASN1Primitive()
Implements abstract org. Implements org. |
| authenticatedAttributes | back to summary |
|---|---|
| private ASN1Set authenticatedAttributes | |
| digAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier digAlgorithm | |
| digEncryptionAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier digEncryptionAlgorithm | |
| encryptedDigest | back to summary |
|---|---|
| private ASN1OctetString encryptedDigest | |
| sid | back to summary |
|---|---|
| private SignerIdentifier sid | |
| unauthenticatedAttributes | back to summary |
|---|---|
| private ASN1Set unauthenticatedAttributes | |
| version | back to summary |
|---|---|
| private ASN1Integer version | |
| SignerInfo | back to summary |
|---|---|
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, ASN1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, ASN1Set unauthenticatedAttributes)
| |
| SignerInfo | back to summary |
|---|---|
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, ASN1OctetString encryptedDigest, Attributes unauthenticatedAttributes)
| |
| SignerInfo | back to summary |
|---|---|
| private SignerInfo(ASN1Sequence seq) | |
| getAuthenticatedAttributes | back to summary |
|---|---|
| public ASN1Set getAuthenticatedAttributes() | |
| getDigestAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getDigestAlgorithm() | |
| getDigestEncryptionAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getDigestEncryptionAlgorithm() | |
| getEncryptedDigest | back to summary |
|---|---|
| public ASN1OctetString getEncryptedDigest() | |
| getInstance | back to summary |
|---|---|
| public static SignerInfo getInstance(Object o) throws IllegalArgumentException Return a SignerInfo object from the given input Accepted inputs:
| |
| getSID | back to summary |
|---|---|
| public SignerIdentifier getSID() | |
| getUnauthenticatedAttributes | back to summary |
|---|---|
| public ASN1Set getUnauthenticatedAttributes() | |
| getVersion | back to summary |
|---|---|
| public ASN1Integer getVersion() | |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. Produce an object suitable for an ASN1OutputStream.
| |