КриптоПро .NET
Search Results for

    Показать/Скрыть содержание

    Class CpX509AuthorityInformationAccessExtension

    Inheritance
    object
    CpAsnEncodedData
    CpX509Extension
    CpX509AuthorityInformationAccessExtension
    Inherited Members
    CpX509Extension.Critical
    CpAsnEncodedData.Oid
    CpAsnEncodedData.RawData
    CpAsnEncodedData.Format(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    true if the extension is critical; otherwise, false.

    Exceptions
    Type Condition
    ArgumentNullException

    rawData is null.

    CryptographicException

    rawData did not decode as an Authority Information Access extension.

    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

    true if the extension is critical; otherwise, false.

    Exceptions
    Type Condition
    ArgumentException

    Both ocspUris and caIssuersUris are either null or empty.

    CryptographicException

    One of the values in ocspUris or caIssuersUris contains characters outside of the International Alphabet 5 (IA5) character space (which is equivalent to 7-bit US-ASCII).

    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

    true if the extension is critical; otherwise, false.

    Exceptions
    Type Condition
    CryptographicException

    rawData did not decode as an Authority Information Access extension.

    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
    CpX509Extension.CopyFrom(CpAsnEncodedData)

    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
    EnumerateUris(string)

    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(string)

    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

    accessMethodOid is null.

    ArgumentException

    The Value property of the accessMethodOid parameter is null or the empty string.

    CryptographicException

    The contents of the extension could not be decoded successfully.

    See Also
    EnumerateCAIssuersUris()
    EnumerateOcspUris()

    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

    accessMethodOid is null.

    CryptographicException

    The contents of the extension could not be decoded successfully.

    See Also
    EnumerateCAIssuersUris()
    EnumerateOcspUris()
    В этом разделе
    Наверх Generated by DocFX