to top
Android APIs
public static final class

KeyStore.TrustedCertificateEntry

extends Object
implements KeyStore.Entry
java.lang.Object
   ↳ java.security.KeyStore.TrustedCertificateEntry

Class Overview

TrustedCertificateEntry represents a KeyStore entry that holds a trusted certificate.

Summary

Public Constructors
KeyStore.TrustedCertificateEntry(Certificate trustCertificate)
Constructs a new instance of TrustedCertificateEntry with the given Certificate.
Public Methods
Certificate getTrustedCertificate()
Returns the trusted certificate.
String toString()
Returns a string containing a concise, human-readable description of this TrustedCertificateEntry.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KeyStore.TrustedCertificateEntry (Certificate trustCertificate)

Added in API level 1

Constructs a new instance of TrustedCertificateEntry with the given Certificate.

Parameters
trustCertificate the trusted certificate.
Throws
NullPointerException if trustCertificate is null.

Public Methods

public Certificate getTrustedCertificate ()

Added in API level 1

Returns the trusted certificate.

Returns
  • the trusted certificate.

public String toString ()

Added in API level 1

Returns a string containing a concise, human-readable description of this TrustedCertificateEntry.

Returns
  • a printable representation for this TrustedCertificateEntry.