org.apache.servicemix.jbi.security.keystore.impl
Class FileKeystoreInstance
java.lang.Object
org.apache.servicemix.jbi.security.keystore.impl.FileKeystoreInstance
- All Implemented Interfaces:
- KeystoreInstance
public class FileKeystoreInstance
- extends Object
- implements KeystoreInstance
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileKeystoreInstance
public FileKeystoreInstance()
setKeyPasswords
public void setKeyPasswords(String keyPasswords)
- Parameters:
keyPasswords - the keyPasswords to set
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
setKeystorePassword
public void setKeystorePassword(String keystorePassword)
- Parameters:
keystorePassword - the keystorePassword to set
getPath
public org.springframework.core.io.Resource getPath()
- Returns:
- the keystorePath
setPath
public void setPath(org.springframework.core.io.Resource keystorePath)
throws IOException
- Parameters:
keystorePath - the keystorePath to set
- Throws:
IOException
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 © 2005-2008 Apache Software Foundation. All Rights Reserved.