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)

Since: 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 ()

Since: API Level 1

Returns the trusted certificate.

Returns
  • the trusted certificate.

public String toString ()

Since: API Level 1

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

Returns
  • a printable representation for this TrustedCertificateEntry.