org.apache.karaf.jaas.config.impl
Class ResourceKeystoreInstance
java.lang.Object
org.apache.karaf.jaas.config.impl.ResourceKeystoreInstance
- All Implemented Interfaces:
- KeystoreInstance
public class ResourceKeystoreInstance
- extends Object
- implements KeystoreInstance
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceKeystoreInstance
public ResourceKeystoreInstance()
getName
public String getName()
- Specified by:
getName in interface KeystoreInstance
- Returns:
- the keystoreName
setName
public void setName(String keystoreName)
- Parameters:
keystoreName - the keystoreName to set
getRank
public int getRank()
- Specified by:
getRank in interface KeystoreInstance
- 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
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:
getCertificate in interface KeystoreInstance
getCertificateAlias
public String getCertificateAlias(Certificate cert)
- Specified by:
getCertificateAlias in interface KeystoreInstance
getCertificateChain
public Certificate[] getCertificateChain(String alias)
- Specified by:
getCertificateChain in interface KeystoreInstance
getKeyManager
public KeyManager[] getKeyManager(String algorithm,
String keyAlias)
throws KeystoreIsLocked,
NoSuchAlgorithmException,
KeyStoreException,
UnrecoverableKeyException
- Specified by:
getKeyManager in interface KeystoreInstance
- Throws:
KeystoreIsLocked
NoSuchAlgorithmException
KeyStoreException
UnrecoverableKeyException
getPrivateKey
public PrivateKey getPrivateKey(String alias)
- Specified by:
getPrivateKey in interface KeystoreInstance
getTrustManager
public TrustManager[] getTrustManager(String algorithm)
throws KeyStoreException,
NoSuchAlgorithmException,
KeystoreIsLocked
- Specified by:
getTrustManager in interface KeystoreInstance
- Throws:
KeyStoreException
NoSuchAlgorithmException
KeystoreIsLocked
isKeyLocked
public boolean isKeyLocked(String keyAlias)
- Specified by:
isKeyLocked in interface KeystoreInstance
isKeystoreLocked
public boolean isKeystoreLocked()
- Specified by:
isKeystoreLocked in interface KeystoreInstance
listPrivateKeys
public String[] listPrivateKeys()
- Specified by:
listPrivateKeys in interface KeystoreInstance
listTrustCertificates
public String[] listTrustCertificates()
- Specified by:
listTrustCertificates in interface KeystoreInstance
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.