Class ResourceKeystoreInstance
- java.lang.Object
-
- org.apache.karaf.jaas.config.impl.ResourceKeystoreInstance
-
- All Implemented Interfaces:
KeystoreInstance
public class ResourceKeystoreInstance extends Object implements KeystoreInstance
-
-
Constructor Summary
Constructors Constructor Description ResourceKeystoreInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificategetCertificate(String alias)StringgetCertificateAlias(Certificate cert)Certificate[]getCertificateChain(String alias)KeyManager[]getKeyManager(String algorithm, String keyAlias)StringgetName()URLgetPath()PrivateKeygetPrivateKey(String alias)intgetRank()TrustManager[]getTrustManager(String algorithm)booleanisKeyLocked(String keyAlias)booleanisKeystoreLocked()String[]listTrustCertificates()voidsetKeyPasswords(String keyPasswords)voidsetKeystorePassword(String keystorePassword)voidsetName(String keystoreName)voidsetPath(URL keystorePath)voidsetRank(int rank)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceKeystoreInstance- Returns:
- the keystoreName
-
setName
public void setName(String keystoreName)
- Parameters:
keystoreName- the keystoreName to set
-
getRank
public int getRank()
- Specified by:
getRankin interfaceKeystoreInstance- Returns:
- the rank
-
setRank
public void setRank(int rank)
- Parameters:
rank- the rank to set
-
getPath
public URL getPath()
- Returns:
- the keystorePath
-
setPath
public void setPath(URL keystorePath) throws IOException
- Parameters:
keystorePath- the keystorePath to set.- Throws:
IOException- in case of failure while setting the path.
-
setKeystorePassword
public void setKeystorePassword(String keystorePassword)
- Parameters:
keystorePassword- the keystorePassword to set
-
setKeyPasswords
public void setKeyPasswords(String keyPasswords)
- Parameters:
keyPasswords- the keyPasswords to set
-
getCertificate
public Certificate getCertificate(String alias)
- Specified by:
getCertificatein interfaceKeystoreInstance
-
getCertificateAlias
public String getCertificateAlias(Certificate cert)
- Specified by:
getCertificateAliasin interfaceKeystoreInstance
-
getCertificateChain
public Certificate[] getCertificateChain(String alias)
- Specified by:
getCertificateChainin interfaceKeystoreInstance
-
getKeyManager
public KeyManager[] getKeyManager(String algorithm, String keyAlias) throws KeystoreIsLocked, NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
- Specified by:
getKeyManagerin interfaceKeystoreInstance- Throws:
KeystoreIsLockedNoSuchAlgorithmExceptionKeyStoreExceptionUnrecoverableKeyException
-
getPrivateKey
public PrivateKey getPrivateKey(String alias)
- Specified by:
getPrivateKeyin interfaceKeystoreInstance
-
getTrustManager
public TrustManager[] getTrustManager(String algorithm) throws KeyStoreException, NoSuchAlgorithmException, KeystoreIsLocked
- Specified by:
getTrustManagerin interfaceKeystoreInstance- Throws:
KeyStoreExceptionNoSuchAlgorithmExceptionKeystoreIsLocked
-
isKeyLocked
public boolean isKeyLocked(String keyAlias)
- Specified by:
isKeyLockedin interfaceKeystoreInstance
-
isKeystoreLocked
public boolean isKeystoreLocked()
- Specified by:
isKeystoreLockedin interfaceKeystoreInstance
-
listTrustCertificates
public String[] listTrustCertificates()
- Specified by:
listTrustCertificatesin interfaceKeystoreInstance
-
-