public class ResourceKeystoreInstance extends Object implements KeystoreInstance
| Constructor and Description |
|---|
ResourceKeystoreInstance() |
| Modifier and Type | Method and Description |
|---|---|
Certificate |
getCertificate(String alias) |
String |
getCertificateAlias(Certificate cert) |
Certificate[] |
getCertificateChain(String alias) |
KeyManager[] |
getKeyManager(String algorithm,
String keyAlias) |
String |
getName() |
URL |
getPath() |
PrivateKey |
getPrivateKey(String alias) |
int |
getRank() |
TrustManager[] |
getTrustManager(String algorithm) |
boolean |
isKeyLocked(String keyAlias) |
boolean |
isKeystoreLocked() |
String[] |
listTrustCertificates() |
void |
setKeyPasswords(String keyPasswords) |
void |
setKeystorePassword(String keystorePassword) |
void |
setName(String keystoreName) |
void |
setPath(URL keystorePath) |
void |
setRank(int rank) |
public String getName()
getName in interface KeystoreInstancepublic void setName(String keystoreName)
keystoreName - the keystoreName to setpublic int getRank()
getRank in interface KeystoreInstancepublic void setRank(int rank)
rank - the rank to setpublic URL getPath()
public void setPath(URL keystorePath) throws IOException
keystorePath - the keystorePath to set.IOException - in case of failure while setting the path.public void setKeystorePassword(String keystorePassword)
keystorePassword - the keystorePassword to setpublic void setKeyPasswords(String keyPasswords)
keyPasswords - the keyPasswords to setpublic Certificate getCertificate(String alias)
getCertificate in interface KeystoreInstancepublic String getCertificateAlias(Certificate cert)
getCertificateAlias in interface KeystoreInstancepublic Certificate[] getCertificateChain(String alias)
getCertificateChain in interface KeystoreInstancepublic KeyManager[] getKeyManager(String algorithm, String keyAlias) throws KeystoreIsLocked, NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
getKeyManager in interface KeystoreInstanceKeystoreIsLockedNoSuchAlgorithmExceptionKeyStoreExceptionUnrecoverableKeyExceptionpublic PrivateKey getPrivateKey(String alias)
getPrivateKey in interface KeystoreInstancepublic TrustManager[] getTrustManager(String algorithm) throws KeyStoreException, NoSuchAlgorithmException, KeystoreIsLocked
getTrustManager in interface KeystoreInstanceKeyStoreExceptionNoSuchAlgorithmExceptionKeystoreIsLockedpublic boolean isKeyLocked(String keyAlias)
isKeyLocked in interface KeystoreInstancepublic boolean isKeystoreLocked()
isKeystoreLocked in interface KeystoreInstancepublic String[] listTrustCertificates()
listTrustCertificates in interface KeystoreInstanceCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.