java.lang.ObjectA trust anchor or most-trusted Certification Authority (CA).java.security.cert.TrustAnchor
This class represents a "most-trusted CA", which is used as a trust anchor
for validating X.509 certification paths. A most-trusted CA includes the
public key of the CA, the CA's name, and any constraints upon the set of
paths which may be validated using this key. These parameters can be
specified in the form of a trusted X509Certificate or as
individual parameters.
Concurrent Access
All TrustAnchor objects must be immutable and
thread-safe. That is, multiple threads may concurrently invoke the
methods defined in this class on a single TrustAnchor
object (or more than one) with no ill effects. Requiring
TrustAnchor objects to be immutable and thread-safe
allows them to be passed around to various pieces of code without
worrying about coordinating access. This stipulation applies to all
public fields and methods of this class and any added or overridden
by subclasses.
1.4 - Sean - Mullan| Constructor: |
|---|
TrustAnchor with the specified
X509Certificate and optional name constraints, which
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 should contain the DER encoded form of the name constraints, as they would appear in the NameConstraints structure defined in RFC 3280 and X.509. The ASN.1 definition of this structure appears below.
Note that the name constraints byte array supplied is cloned to protect against subsequent modifications.
|
TrustAnchor where the
most-trusted CA is specified as an X500Principal 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 3280 and X.509. The ASN.1 notation for this structure is supplied in the documentation for byte[]) trustedCert, byte[] nameConstraints) . Note that the name constraints byte array supplied here is cloned to protect against subsequent modifications.
|
TrustAnchor 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 3280 and X.509. The ASN.1 notation for this structure is supplied in the documentation for byte[]) trustedCert, byte[] nameConstraints) . Note that the name constraints byte array supplied here is cloned to protect against subsequent modifications.
|
| Method from java.security.cert.TrustAnchor Summary: |
|---|
| getCA, getCAName, getCAPublicKey, getNameConstraints, getTrustedCert, toString |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.security.cert.TrustAnchor Detail: |
|---|
|
String
format. |
|
The name constraints are returned 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 3280 and X.509. The ASN.1 notation for this structure is supplied in the documentation for byte[]) trustedCert, byte[] nameConstraints) . Note that the byte array returned is cloned to protect against subsequent modifications. |
|
TrustAnchor. |