Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​X509Certificates.​X509AuthorityKeyIdentifierExtension
Assembly: System.Security.Cryptography
Inheritance: object → AsnEncodedData → X509Extension → X509AuthorityKeyIdentifierExtension
Represents the Authority Key Identifier X.509 Extension (2.5.29.35).
Properties
public
ReadOnlyMemory?
KeyIdentifier
Gets the subject key identifier value from this certificate's issuing Certificate Authority (CA), when specified.
public
X500DistinguishedName
NamedIssuer
Gets the <see cref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.IssuerName" /> value from this certificate's issuing Certificate Authority (CA), when available.
public
ReadOnlyMemory?
RawIssuer
Gets the encoded representation of the <c>authorityCertIssuer</c> field from the extension, or <see langword="null" /> when the extension does not contain an authority certificate issuer field.
public
ReadOnlyMemory?
SerialNumber
Gets the serial number of this certificate's issuing Certificate Authority (CA).
public
bool
Critical
Gets a Boolean value indicating whether the extension is critical.
public
Oid
Oid
Gets or sets the <see cref="T:System.Security.Cryptography.Oid" /> value for an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.
public
byte[]
RawData
Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.
Methods
public
void
CopyFrom​(AsnEncodedData asnEncodedData)
Copies the extension properties of the specified <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.
asnEncodedData
The <see cref="T:System.Security.Cryptography.AsnEncodedData" /> to be copied.
public static
X509AuthorityKeyIdentifierExtension
Create​(byte[] keyIdentifier,
X500DistinguishedName issuerName,
byte[] serialNumber)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the provided key identifier, issuer name and serial number.
Returns The configured extension.
keyIdentifier
The subject key identifier value from the Certificate Authority (CA) certificate that will sign this extension.
issuerName
The issuer name value from the Certificate Authority (CA) certificate that will sign this extension.
serialNumber
The serial number value from the Certificate Authority (CA) certificate that will sign this extension.
public static
X509AuthorityKeyIdentifierExtension
Create​(ReadOnlySpan<​byte> keyIdentifier,
X500DistinguishedName issuerName,
ReadOnlySpan<​byte> serialNumber)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the provided key identifier, issuer name and serial number.
Returns The configured extension.
keyIdentifier
The subject key identifier value from the Certificate Authority (CA) certificate that will sign this extension.
issuerName
The issuer name value from the Certificate Authority (CA) certificate that will sign this extension.
serialNumber
The serial number value from the Certificate Authority (CA) certificate that will sign this extension.
public static
X509AuthorityKeyIdentifierExtension
CreateFromCertificate​(X509Certificate2 certificate,
bool includeKeyIdentifier,
bool includeIssuerAndSerial)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> based on values from the provided certificate.
Returns The configured extension.
certificate
The Certificate Authority (CA) certificate that will sign this extension.
includeKeyIdentifier
<see langword="true" /> to include the Subject Key Identifier value from the certificate as the key identifier value in this extension; otherwise, <see langword="false" /> .
includeIssuerAndSerial
<see langword="true" /> to include the certificate's issuer name and serial number in this extension; otherwise, <see langword="false" /> .
public static
X509AuthorityKeyIdentifierExtension
CreateFromIssuerNameAndSerialNumber​(X500DistinguishedName issuerName,
byte[] serialNumber)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the provided issuer name and serial number.
Returns The configured extension.
issuerName
The issuer name value from the Certificate Authority (CA) certificate that will sign this extension.
serialNumber
The serial number value from the Certificate Authority (CA) certificate that will sign this extension.
public static
X509AuthorityKeyIdentifierExtension
CreateFromIssuerNameAndSerialNumber​(X500DistinguishedName issuerName,
ReadOnlySpan<​byte> serialNumber)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the provided issuer name and serial number.
Returns The configured extension.
issuerName
The issuer name value from the Certificate Authority (CA) certificate that will sign this extension.
serialNumber
The serial number value from the Certificate Authority (CA) certificate that will sign this extension.
public static
X509AuthorityKeyIdentifierExtension
CreateFromSubjectKeyIdentifier​(byte[] subjectKeyIdentifier)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the provided key identifier value.
Returns The configured extension.
subjectKeyIdentifier
The subject key identifier value from the Certificate Authority (CA) certificate that will sign this extension.
public static
X509AuthorityKeyIdentifierExtension
CreateFromSubjectKeyIdentifier​(ReadOnlySpan<​byte> subjectKeyIdentifier)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the provided key identifier value.
Returns The configured extension.
subjectKeyIdentifier
The subject key identifier value from the Certificate Authority (CA) certificate that will sign this extension.
public static
X509AuthorityKeyIdentifierExtension
CreateFromSubjectKeyIdentifier​(X509SubjectKeyIdentifierExtension subjectKeyIdentifier)
Creates an <see cref="T:System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension" /> that specifies the key identifier value from a subject key identifier extension.
Returns The configured extension.
subjectKeyIdentifier
The subject key identifier extension from the Certificate Authority (CA) certificate that will sign this extension.
public
string
Format​(bool multiLine)
Inherited from AsnEncodedData
Returns a formatted version of the Abstract Syntax Notation One (ASN.1)-encoded data as a string.
Returns A formatted string that represents the Abstract Syntax Notation One (ASN.1)-encoded data.
multiLine
<see langword="true" /> if the return string should contain carriage returns; otherwise, <see langword="false" /> .
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object