|
Android 2.3 Gingerbread | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.KeyStore.PrivateKeyEntry
public static final class KeyStore.PrivateKeyEntry
PrivateKeyEntry represents a KeyStore entry that
holds a private key.
| Constructor Summary | |
|---|---|
KeyStore.PrivateKeyEntry(PrivateKey privateKey,
Certificate[] chain)
Constructs a new instance of PrivateKeyEntry with the given
PrivateKey and the provided certificate chain. |
|
| Method Summary | |
|---|---|
Certificate |
getCertificate()
Returns the certificate corresponding to the private key. |
Certificate[] |
getCertificateChain()
Returns the certificate chain. |
PrivateKey |
getPrivateKey()
Returns the private key. |
String |
toString()
Returns a string containing a concise, human-readable description of this PrivateKeyEntry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStore.PrivateKeyEntry(PrivateKey privateKey,
Certificate[] chain)
PrivateKeyEntry with the given
PrivateKey and the provided certificate chain.
privateKey - the private key.chain - the ordered certificate chain with the certificate
corresponding to the private key at index 0.
NullPointerException - if privateKey or chain is null.
IllegalArgumentException - if chain.length == 0, the algorithm of the
private key does not match the algorithm of the public
key of the first certificate or the certificates are not
all of the same type.| Method Detail |
|---|
public PrivateKey getPrivateKey()
public Certificate[] getCertificateChain()
public Certificate getCertificate()
public String toString()
PrivateKeyEntry.
toString in class ObjectPrivateKeyEntry.
|
Android 2.3 Gingerbread | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||