java.security.cert
public class TrustAnchor extends Object
Constructor Summary | |
---|---|
TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
Create a new trust anchor from a certificate and (optional) name
constraints.
| |
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.
|
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.
|
If the nameConstraints argument in non-null, it will be copied to prevent modification.
Parameters: trustedCert The trusted certificate. nameConstraints The encoded nameConstraints.
If the nameConstraints argument in non-null, it will be copied to prevent modification.
UNKNOWN: caName The CA's distinguished name. caKey The CA's public key. nameConstraints The encoded nameConstraints.
Returns: The CA's distinguished name.
Returns: The CA's public key.
The name constraints byte array is copied when this method is called to prevent modification.
Returns: The encoded name constraints.
Returns: The trusted certificate.
Returns: The printable representation.