org.apache.servicemix.kernel.jaas.config.impl
Class ResourceKeystoreInstance
java.lang.Object
org.apache.servicemix.kernel.jaas.config.impl.ResourceKeystoreInstance
- All Implemented Interfaces:
- KeystoreInstance
public class ResourceKeystoreInstance
- extends java.lang.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 java.lang.String getName()
- Specified by:
getName in interface KeystoreInstance
- Returns:
- the keystoreName
setName
public void setName(java.lang.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 org.springframework.core.io.Resource getPath()
- Returns:
- the keystorePath
setPath
public void setPath(org.springframework.core.io.Resource keystorePath)
throws java.io.IOException
- Parameters:
keystorePath - the keystorePath to set
- Throws:
java.io.IOException
setKeystorePassword
public void setKeystorePassword(java.lang.String keystorePassword)
- Parameters:
keystorePassword - the keystorePassword to set
setKeyPasswords
public void setKeyPasswords(java.lang.String keyPasswords)
- Parameters:
keyPasswords - the keyPasswords to set
getCertificate
public java.security.cert.Certificate getCertificate(java.lang.String alias)
- Specified by:
getCertificate in interface KeystoreInstance
getCertificateAlias
public java.lang.String getCertificateAlias(java.security.cert.Certificate cert)
- Specified by:
getCertificateAlias in interface KeystoreInstance
getCertificateChain
public java.security.cert.Certificate[] getCertificateChain(java.lang.String alias)
- Specified by:
getCertificateChain in interface KeystoreInstance
getKeyManager
public javax.net.ssl.KeyManager[] getKeyManager(java.lang.String algorithm,
java.lang.String keyAlias)
throws KeystoreIsLocked,
java.security.NoSuchAlgorithmException,
java.security.KeyStoreException,
java.security.UnrecoverableKeyException
- Specified by:
getKeyManager in interface KeystoreInstance
- Throws:
KeystoreIsLocked
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
getPrivateKey
public java.security.PrivateKey getPrivateKey(java.lang.String alias)
- Specified by:
getPrivateKey in interface KeystoreInstance
getTrustManager
public javax.net.ssl.TrustManager[] getTrustManager(java.lang.String algorithm)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
KeystoreIsLocked
- Specified by:
getTrustManager in interface KeystoreInstance
- Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
KeystoreIsLocked
isKeyLocked
public boolean isKeyLocked(java.lang.String keyAlias)
- Specified by:
isKeyLocked in interface KeystoreInstance
isKeystoreLocked
public boolean isKeystoreLocked()
- Specified by:
isKeystoreLocked in interface KeystoreInstance
listPrivateKeys
public java.lang.String[] listPrivateKeys()
- Specified by:
listPrivateKeys in interface KeystoreInstance
listTrustCertificates
public java.lang.String[] listTrustCertificates()
- Specified by:
listTrustCertificates in interface KeystoreInstance
Copyright © 2007-2008 Apache Software Foundation. All Rights Reserved.