java.security
Class KeyStore.TrustedCertificateEntry

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.KeyStore.TrustedCertificateEntry
All Implemented Interfaces:
KeyStore.Entry sample code for java.security.KeyStore.Entry definition code for java.security.KeyStore.Entry
Enclosing class:
KeyStore sample code for java.security.KeyStore definition code for java.security.KeyStore

public static final class KeyStore.TrustedCertificateEntry
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements KeyStore.Entry sample code for java.security.KeyStore.Entry definition code for java.security.KeyStore.Entry

A KeyStore entry that holds a trusted Certificate.

Since:
1.5

Constructor Summary
KeyStore.TrustedCertificateEntry sample code for java.security.KeyStore.TrustedCertificateEntry.KeyStore.TrustedCertificateEntry(java.security.cert.Certificate) definition code for java.security.KeyStore.TrustedCertificateEntry.KeyStore.TrustedCertificateEntry(java.security.cert.Certificate) (Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate  trustedCert)
          Constructs a TrustedCertificateEntry with a trusted Certificate.
 
Method Summary
 Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate getTrustedCertificate sample code for java.security.KeyStore.TrustedCertificateEntry.getTrustedCertificate() definition code for java.security.KeyStore.TrustedCertificateEntry.getTrustedCertificate() ()
          Gets the trusted Certficate from this entry.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.security.KeyStore.TrustedCertificateEntry.toString() definition code for java.security.KeyStore.TrustedCertificateEntry.toString() ()
          Returns a string representation of this TrustedCertificateEntry.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

KeyStore.TrustedCertificateEntry sample code for java.security.KeyStore.TrustedCertificateEntry(java.security.cert.Certificate) definition code for java.security.KeyStore.TrustedCertificateEntry(java.security.cert.Certificate)

public KeyStore.TrustedCertificateEntry(Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate  trustedCert)
Constructs a TrustedCertificateEntry with a trusted Certificate.

Parameters:
trustedCert - the trusted Certificate
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if trustedCert is null
Method Detail

getTrustedCertificate sample code for java.security.KeyStore.TrustedCertificateEntry.getTrustedCertificate() definition code for java.security.KeyStore.TrustedCertificateEntry.getTrustedCertificate()

public Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate  getTrustedCertificate()
Gets the trusted Certficate from this entry.

Returns:
the trusted Certificate from this entry

toString sample code for java.security.KeyStore.TrustedCertificateEntry.toString() definition code for java.security.KeyStore.TrustedCertificateEntry.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this TrustedCertificateEntry.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this TrustedCertificateEntry.