| Modifier and Type | Method and Description |
|---|---|
java.security.cert.Certificate |
getCertificate(java.lang.String alias)
Returns the certificate associated with the given alias.
|
java.security.cert.Certificate[] |
getCertificateChain(java.lang.String alias)
Returns the certificate chain associated with the given alias.
|
java.security.Key |
getKey(java.lang.String alias)
Returns the key associated with the given alias.
|
javax.net.ssl.KeyManager |
getKeyManager()
Get a KeyManager implementation instance using the service.
|
javax.net.ssl.KeyManager |
getKeyManager(java.lang.String alias)
Get a KeyManager implementation instance using the service.
|
javax.net.ssl.KeyManager[] |
getKeyManagers()
Get all KeyManager implementation instances using the service.
|
javax.net.ssl.KeyManager[] |
getKeyManagers(java.lang.String alias)
Get all KeyManager implementation instances using the service.
|
java.security.KeyPair |
getKeyPair(java.lang.String alias)
Returns the key pair associated with the given alias.
|
javax.net.ssl.TrustManager |
getTrustManager()
Get a trust manager implementation instance using the service for the
default trust store.
|
javax.net.ssl.TrustManager[] |
getTrustManagers()
Get all trust manager implementation instances using the service for the
default trust store.
|
javax.net.ssl.KeyManager getKeyManager()
throws KeystoreException
KeystoreExceptionjavax.net.ssl.KeyManager getKeyManager(java.lang.String alias)
throws KeystoreException
alias - The alias name for the key.KeystoreExceptionjavax.net.ssl.KeyManager[] getKeyManagers()
throws KeystoreException
KeystoreExceptionjavax.net.ssl.KeyManager[] getKeyManagers(java.lang.String alias)
throws KeystoreException
alias - The alias name of the key.KeystoreExceptionjavax.net.ssl.TrustManager getTrustManager()
throws KeystoreException
KeystoreExceptionjavax.net.ssl.TrustManager[] getTrustManagers()
throws KeystoreException
KeystoreExceptionjava.security.Key getKey(java.lang.String alias)
throws KeystoreException
alias - the alias namejava.lang.IllegalStateException - if the algorithm for recovering the key cannot be found,
if the key cannot be recovered.KeystoreExceptionjava.security.KeyPair getKeyPair(java.lang.String alias)
throws KeystoreException
alias - the alias namejava.lang.IllegalStateException - if the algorithm for recovering the key cannot be found,
if the key cannot be recovered, if the correspondent
keystore has not been initialized (loaded).KeystoreExceptionjava.security.cert.Certificate getCertificate(java.lang.String alias)
throws KeystoreException
If the given alias name identifies an entry created by a call to
setCertificateEntry, or created by a call to
setEntry with a TrustedCertificateEntry, then
the trusted certificate contained in that entry is returned.
If the given alias name identifies an entry created by a call to
setKeyEntry, or created by a call to setEntry
with a PrivateKeyEntry, then the first element of the
certificate chain in that entry is returned.
alias - the alias namejava.lang.IllegalStateException - if the correspondent keystore has not been initialized
(loaded)KeystoreExceptionjava.security.cert.Certificate[] getCertificateChain(java.lang.String alias)
throws KeystoreException
setKeyEntry, or by a call to setEntry with a
PrivateKeyEntry.alias - the alias namejava.lang.IllegalStateException - if the keystore has not been initialized (loaded).KeystoreException