API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security.cert. TrustAnchor View Source
Author(s)
Sean Mullan
Since
1.4
Version
1.11 11/17/05
Serial
Hierarchy
 Object
      TrustAnchor
Implements
Subclasses
Description
public class TrustAnchor
  A trust anchor or most-trusted Certification Authority (CA).
Constructors
public TrustAnchor (String caName, PublicKey pubKey, byte[] nameConstraints)
  Creates an instance of TrustAnchor where the most-trusted CA is specified as a distinguished name and public key.
public TrustAnchor (X500Principal caPrincipal, PublicKey pubKey, byte[] nameConstraints)
  Creates an instance of TrustAnchor where the most-trusted CA is specified as an X500Principal and public key.
public TrustAnchor (X509Certificate trustedCert, byte[] nameConstraints)
  Creates an instance of 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.
Methods
Hide/Show inherited methods
publicfinal X500Principal getCA ()
  Returns the name of the most-trusted CA as an X500Principal.
publicfinal String getCAName ()
  Returns the name of the most-trusted CA in RFC 2253 String format.
publicfinal PublicKey getCAPublicKey ()
  Returns the public key of the most-trusted CA.
publicfinal byte getNameConstraints ()
  Returns the name constraints parameter.
publicfinal X509Certificate getTrustedCert ()
  Returns the most-trusted CA certificate.
public String toString ()
  Returns a formatted string describing the TrustAnchor.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar