Android 2.3 Gingerbread

java.security
Class KeyStore.TrustedCertificateEntry

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

public static final class KeyStore.TrustedCertificateEntry
extends Object
implements KeyStore.Entry

TrustedCertificateEntry represents a KeyStore entry that holds a trusted certificate.


Constructor Summary
KeyStore.TrustedCertificateEntry(Certificate trustCertificate)
          Constructs a new instance of TrustedCertificateEntry with the given Certificate.
 
Method Summary
 Certificate getTrustedCertificate()
          Returns the trusted certificate.
 String toString()
          Returns a string containing a concise, human-readable description of this TrustedCertificateEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyStore.TrustedCertificateEntry

public KeyStore.TrustedCertificateEntry(Certificate trustCertificate)
Constructs a new instance of TrustedCertificateEntry with the given Certificate.

Parameters:
trustCertificate - the trusted certificate.
Throws:
NullPointerException - if trustCertificate is null.
Method Detail

getTrustedCertificate

public Certificate getTrustedCertificate()
Returns the trusted certificate.

Returns:
the trusted certificate.

toString

public String toString()
Returns a string containing a concise, human-readable description of this TrustedCertificateEntry.

Overrides:
toString in class Object
Returns:
a printable representation for this TrustedCertificateEntry.

Android 2.3 Gingerbread