Creates an instance of
CopyC# where the most-trusted
CA is specified as a distinguished name and public key. Name constraints
are an optional parameter, and are intended to be used as additional
constraints when validating an X.509 certification path.
The name constraints are specified as a byte array. This byte array contains the DER encoded form of the name constraints, as they would appear in the NameConstraints structure defined in RFC 2459 and X.509.

TrustAnchor
The name constraints are specified as a byte array. This byte array contains the DER encoded form of the name constraints, as they would appear in the NameConstraints structure defined in RFC 2459 and X.509.
Namespace: Org.BouncyCastle.Pkix
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public TrustAnchor( string caName, AsymmetricKeyParameter pubKey, byte[] nameConstraints ) |
Visual Basic |
---|
Public Sub New ( _ caName As String, _ pubKey As AsymmetricKeyParameter, _ nameConstraints As Byte() _ ) |
Visual C++ |
---|
public: TrustAnchor( String^ caName, AsymmetricKeyParameter^ pubKey, array<unsigned char>^ nameConstraints ) |
Parameters
- caName
- Type: System..::..String
the X.500 distinguished name of the most-trusted CA in RFC 2253 string format
- pubKey
- Type: Org.BouncyCastle.Crypto..::..AsymmetricKeyParameter
the public key of the most-trusted CA
- nameConstraints
- Type: array<System..::..Byte>[]()[][]
a byte array containing the ASN.1 DER encoding of a NameConstraints extension to be used for checking name constraints. Only the value of the extension is included, not the OID or criticality flag. Specify null to omit the parameter.