Class CpX509Extension
Represents an X509 extension.
Inheritance
Inherited Members
Namespace: CryptoPro.Security.Cryptography.X509Certificates
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public class CpX509Extension : CpAsnEncodedData
Constructors
CpX509Extension()
Initializes a new instance of the CpX509Extension class.
Declaration
protected CpX509Extension()
CpX509Extension(CpAsnEncodedData, bool)
Initializes a new instance of the CpX509Extension class.
Declaration
public CpX509Extension(CpAsnEncodedData encodedExtension, bool critical)
Parameters
Type | Name | Description |
---|---|---|
CpAsnEncodedData | encodedExtension | The encoded extension data represented as CpAsnEncodedData. |
bool | critical |
CpX509Extension(Oid, byte[], bool)
Initializes a new instance of the CpX509Extension class.
Declaration
public CpX509Extension(Oid oid, byte[] rawData, bool critical)
Parameters
Type | Name | Description |
---|---|---|
Oid | oid | The object identifier used to identify the extension. |
byte[] | rawData | The encoded data used to create the extension. |
bool | critical |
CpX509Extension(Oid, ReadOnlySpan<byte>, bool)
Initializes a new instance of the X509Extension class.
Declaration
public CpX509Extension(Oid oid, ReadOnlySpan<byte> rawData, bool critical)
Parameters
Type | Name | Description |
---|---|---|
Oid | oid | The object identifier used to identify the extension. |
ReadOnlySpan<byte> | rawData | The encoded data used to create the extension. |
bool | critical |
CpX509Extension(string, byte[], bool)
Initializes a new instance of the X509Extension class.
Declaration
public CpX509Extension(string oid, byte[] rawData, bool critical)
Parameters
Type | Name | Description |
---|---|---|
string | oid | The object identifier used to identify the extension. |
byte[] | rawData | The encoded data used to create the extension. |
bool | critical |
CpX509Extension(string, ReadOnlySpan<byte>, bool)
Initializes a new instance of the X509Extension class.
Declaration
public CpX509Extension(string oid, ReadOnlySpan<byte> rawData, bool critical)
Parameters
Type | Name | Description |
---|---|---|
string | oid | The object identifier used to identify the extension. |
ReadOnlySpan<byte> | rawData | The encoded data used to create the extension. |
bool | critical |
Properties
Critical
Gets a value indicating whether the extension is critical.
Declaration
public bool Critical { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
CopyFrom(CpAsnEncodedData)
Copies information from an CpAsnEncodedData object.
Declaration
public override void CopyFrom(CpAsnEncodedData asnEncodedData)
Parameters
Type | Name | Description |
---|---|---|
CpAsnEncodedData | asnEncodedData | The CpAsnEncodedData object to base the new object on. |