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.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.