PkcsSubjectIdentifier Class

The SubjectIdentifier2 class defines the type of the identifier of a subject, such as a PkcsSignerInfo. The subject can be identified by the certificate issuer and serial number or the subject key.

Definition

Namespace: SysadminsLV.PKI.Cryptography.Pkcs
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public sealed class PkcsSubjectIdentifier
Inheritance
Object    PkcsSubjectIdentifier

Remarks

This class is a replacement for for a .NET native SubjectIdentifier class.

Constructors

PkcsSubjectIdentifier(Byte) Initializes a new instance of SubjectIdentifier2 class from ASN.1-encoded byte array that represents encoded Subject Identifier structure.
PkcsSubjectIdentifier(X509Certificate2, SubjectIdentifierType) Initializes a new instance of PkcsSubjectIdentifier class using signer certificate and type how this certificate is referenced in signer information of PkcsSignerInfo object.

Properties

RawData Gets the raw data associated with the current object.
Type Gets the type of the of subject identifier. The subject can be identified by the certificate issuer and serial number or the subject key.

The following table displays mappings between subject identifier type and object type stored in the Value property:

Identifier typeObject type
IssuerAndSerialNumberAn instance of X509IssuerSerial class.
SubjectKeyIdentifier A string that represents subject key identifier value (cryptographic hash calculated over a public key).
Sha1HashA SHA1 hash of the certificate to be used as a unique identifier of the certificate.
UnknownNULL

Value Contains the value of the subject identifier. Object type and it's description depends on Type property value.

The following table displays mappings between subject identifier type and object type stored in the property:

Identifier typeObject type
IssuerAndSerialNumberAn instance of X509IssuerSerial class.
SubjectKeyIdentifier A string that represents subject key identifier value (cryptographic hash calculated over a public key).
NoSignatureA string that contains hash value of external message.
UnknownNULL.

Methods

Encode Encodes current object to an ASN.1 format.
Equals
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
ToString
(Inherited from Object)

See Also