Class CpX509AuthorityInformationAccessExtension
Inherited Members
Namespace: CryptoPro.Security.Cryptography.X509Certificates
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public class CpX509AuthorityInformationAccessExtension : CpX509Extension
Constructors
CpX509AuthorityInformationAccessExtension()
Initializes a new instance of the CpX509AuthorityInformationAccessExtension class.
Declaration
public CpX509AuthorityInformationAccessExtension()
CpX509AuthorityInformationAccessExtension(byte[], bool)
Initializes a new instance of the CpX509AuthorityInformationAccessExtension class from an encoded representation of the extension and an optional critical marker.
Declaration
public CpX509AuthorityInformationAccessExtension(byte[] rawData, bool critical = false)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | rawData | The encoded data used to create the extension. |
| bool | critical |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| CryptographicException |
|
CpX509AuthorityInformationAccessExtension(IEnumerable<string>?, IEnumerable<string>?, bool)
Initializes a new instance of the CpX509AuthorityInformationAccessExtension class from a collection of OCSP and CAIssuer values.
Declaration
public CpX509AuthorityInformationAccessExtension(IEnumerable<string>? ocspUris, IEnumerable<string>? caIssuersUris, bool critical = false)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | ocspUris | A collection of OCSP URI values to embed in the extension. |
| IEnumerable<string> | caIssuersUris | A collection of CAIssuers URI values to embed in the extension. |
| bool | critical |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Both |
| CryptographicException | One of the values in |
CpX509AuthorityInformationAccessExtension(ReadOnlySpan<byte>, bool)
Initializes a new instance of the CpX509AuthorityInformationAccessExtension class from an encoded representation of the extension and an optional critical marker.
Declaration
public CpX509AuthorityInformationAccessExtension(ReadOnlySpan<byte> rawData, bool critical = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | rawData | The encoded data used to create the extension. |
| bool | critical |
Exceptions
| Type | Condition |
|---|---|
| CryptographicException |
|
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. |
Overrides
EnumerateCAIssuersUris()
Enumerates the AccessDescription values whose AccessMethod is CAIssuers (1.3.6.1.5.5.7.48.2) and content data type is URI.
Declaration
public IEnumerable<string> EnumerateCAIssuersUris()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The URIs corresponding to the locations for the issuing Certificate Authority certificate. |
Exceptions
| Type | Condition |
|---|---|
| CryptographicException | The contents of the extension could not be decoded successfully. |
See Also
EnumerateOcspUris()
Enumerates the AccessDescription values whose AccessMethod is OCSP (1.3.6.1.5.5.7.48.1) and content data type is URI.
Declaration
public IEnumerable<string> EnumerateOcspUris()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The URIs corresponding to the locations for the issuing Certificate Authority certificate. |
Exceptions
| Type | Condition |
|---|---|
| CryptographicException | The contents of the extension could not be decoded successfully. |
See Also
EnumerateUris(Oid)
Enumerates the AccessDescription values described in this extension, filtering the results to include only items using the specified access method and having a content data type of URI.
Declaration
public IEnumerable<string> EnumerateUris(Oid accessMethodOid)
Parameters
| Type | Name | Description |
|---|---|---|
| Oid | accessMethodOid | The object identifier representing the access method for filtering. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The URI-typed access location values that correspond to the requested access method. |
Remarks
This method does not validate or ensure that the produced values are valid URIs, merely that they were encoded as a URI.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException | The Value property of the |
| CryptographicException | The contents of the extension could not be decoded successfully. |
See Also
EnumerateUris(string)
Enumerates the AccessDescription values described in this extension, filtering the results to include only items using the specified access method and having a content data type of URI.
Declaration
public IEnumerable<string> EnumerateUris(string accessMethodOid)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accessMethodOid | The dotted-decimal form of the access method for filtering. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | The URI-typed access location values that correspond to the requested access method. |
Remarks
This method does not validate or ensure that the produced values are valid URIs, merely that they were encoded as a URI.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| CryptographicException | The contents of the extension could not be decoded successfully. |