Click or drag to resize

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.
Inheritance Hierarchy
SystemObject
  SysadminsLV.PKI.Cryptography.PkcsPkcsSubjectIdentifier

Namespace:  SysadminsLV.PKI.Cryptography.Pkcs
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public sealed class PkcsSubjectIdentifier

The PkcsSubjectIdentifier type exposes the following members.

Constructors
  NameDescription
Public methodPkcsSubjectIdentifier(Byte)
Initializes a new instance of SubjectIdentifier2 class from ASN.1-encoded byte array that represents encoded Subject Identifier structure.
Public methodPkcsSubjectIdentifier(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.
Top
Properties
  NameDescription
Public propertyRawData
Gets the raw data associated with the current object.
Public propertyType
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

Public propertyValue
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.

Top
Methods
  NameDescription
Public methodEncode
Encodes current object to an ASN.1 format.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
This class is a replacement for for a .NET native SubjectIdentifier class.
See Also