Class SignerInfo
- Namespace
- Org.BouncyCastle.Asn1.Cms
- Assembly
- BouncyCastle.Cryptography.dll
Represents per-signer information within a SignedData
public class SignerInfo : Asn1Encodable, IAsn1Convertible
- Inheritance
-
SignerInfo
- Implements
- Inherited Members
Remarks
See RFC 5652 5.3.
SignerInfo ::= SEQUENCE {
version CMSVersion,
sid SignerIdentifier,
digestAlgorithm DigestAlgorithmIdentifier,
signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL,
signatureAlgorithm SignatureAlgorithmIdentifier,
signature SignatureValue,
unsignedAttrs [1] IMPLICIT UnsignedAttributes OPTIONAL }
SignerIdentifier ::= CHOICE {
issuerAndSerialNumber IssuerAndSerialNumber,
subjectKeyIdentifier [0] SubjectKeyIdentifier }
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
Constructors
SignerInfo(SignerIdentifier, AlgorithmIdentifier, Asn1Set, AlgorithmIdentifier, Asn1OctetString, Asn1Set)
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Asn1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Asn1Set unauthenticatedAttributes)
Parameters
sidSignerIdentifierdigAlgorithmAlgorithmIdentifierauthenticatedAttributesAsn1SetdigEncryptionAlgorithmAlgorithmIdentifierencryptedDigestAsn1OctetStringunauthenticatedAttributesAsn1Set
SignerInfo(SignerIdentifier, AlgorithmIdentifier, Attributes, AlgorithmIdentifier, Asn1OctetString, Attributes)
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Attributes unauthenticatedAttributes)
Parameters
sidSignerIdentifierdigAlgorithmAlgorithmIdentifierauthenticatedAttributesAttributesdigEncryptionAlgorithmAlgorithmIdentifierencryptedDigestAsn1OctetStringunauthenticatedAttributesAttributes
Properties
AuthenticatedAttributes
[Obsolete("Use 'SignedAttrs' instead")]
public Asn1Set AuthenticatedAttributes { get; }
Property Value
DigestAlgorithm
public AlgorithmIdentifier DigestAlgorithm { get; }
Property Value
DigestEncryptionAlgorithm
[Obsolete("Use 'SignatureAlgorithm' instead")]
public AlgorithmIdentifier DigestEncryptionAlgorithm { get; }
Property Value
EncryptedDigest
[Obsolete("Use 'Signature' instead")]
public Asn1OctetString EncryptedDigest { get; }
Property Value
Signature
public Asn1OctetString Signature { get; }
Property Value
SignatureAlgorithm
public AlgorithmIdentifier SignatureAlgorithm { get; }
Property Value
SignedAttrs
public Asn1Set SignedAttrs { get; }
Property Value
SignerID
public SignerIdentifier SignerID { get; }
Property Value
UnauthenticatedAttributes
[Obsolete("Use 'UnsignedAttrs' instead")]
public Asn1Set UnauthenticatedAttributes { get; }
Property Value
UnsignedAttrs
public Asn1Set UnsignedAttrs { get; }
Property Value
Version
public DerInteger Version { get; }
Property Value
Methods
GetInstance(Asn1TaggedObject, bool)
public static SignerInfo GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObjectAsn1TaggedObjectdeclaredExplicitbool
Returns
GetInstance(object)
public static SignerInfo GetInstance(object obj)
Parameters
objobject
Returns
GetTagged(Asn1TaggedObject, bool)
public static SignerInfo GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObjectAsn1TaggedObjectdeclaredExplicitbool
Returns
ToAsn1Object()
public override Asn1Object ToAsn1Object()