|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.cert.TrustAnchor
public class TrustAnchor
An ultimately-trusted certificate to serve as the root of a certificate chain.
| Constructor Summary | |
|---|---|
TrustAnchor(String caName,
PublicKey caKey,
byte[] nameConstraints)
Create a new trust anchor from a certificate authority's distinguished name, public key, and (optional) name constraints. |
|
TrustAnchor(X509Certificate trustedCert,
byte[] nameConstraints)
Create a new trust anchor from a certificate and (optional) name constraints. |
|
| Method Summary | |
|---|---|
String |
getCAName()
Return the certificate authority's distinguished name, or null if none was specified. |
PublicKey |
getCAPublicKey()
Return the certificate authority's public key, or null if none was specified. |
byte[] |
getNameConstraints()
Return the encoded name constraints, or null if none was specified. |
X509Certificate |
getTrustedCert()
Return the trusted certificate, or null if none was specified. |
String |
toString()
Return a printable representation of this trust anchor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TrustAnchor(X509Certificate trustedCert,
byte[] nameConstraints)
If the nameConstraints argument in non-null, it will be copied to prevent modification.
trustedCert - The trusted certificate.nameConstraints - The encoded nameConstraints.
public TrustAnchor(String caName,
PublicKey caKey,
byte[] nameConstraints)
If the nameConstraints argument in non-null, it will be copied to prevent modification.
| Method Detail |
|---|
public final X509Certificate getTrustedCert()
public final String getCAName()
public final PublicKey getCAPublicKey()
public final byte[] getNameConstraints()
The name constraints byte array is copied when this method is called to prevent modification.
public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||