org.apache.karaf.jaas.config.impl
Class ResourceKeystoreInstance

java.lang.Object
  extended by org.apache.karaf.jaas.config.impl.ResourceKeystoreInstance
All Implemented Interfaces:
KeystoreInstance

public class ResourceKeystoreInstance
extends java.lang.Object
implements KeystoreInstance


Constructor Summary
ResourceKeystoreInstance()
           
 
Method Summary
 java.security.cert.Certificate getCertificate(java.lang.String alias)
           
 java.lang.String getCertificateAlias(java.security.cert.Certificate cert)
           
 java.security.cert.Certificate[] getCertificateChain(java.lang.String alias)
           
 javax.net.ssl.KeyManager[] getKeyManager(java.lang.String algorithm, java.lang.String keyAlias)
           
 java.lang.String getName()
           
 java.net.URL getPath()
           
 java.security.PrivateKey getPrivateKey(java.lang.String alias)
           
 int getRank()
           
 javax.net.ssl.TrustManager[] getTrustManager(java.lang.String algorithm)
           
 boolean isKeyLocked(java.lang.String keyAlias)
           
 boolean isKeystoreLocked()
           
 java.lang.String[] listPrivateKeys()
           
 java.lang.String[] listTrustCertificates()
           
 void setKeyPasswords(java.lang.String keyPasswords)
           
 void setKeystorePassword(java.lang.String keystorePassword)
           
 void setName(java.lang.String keystoreName)
           
 void setPath(java.net.URL keystorePath)
           
 void setRank(int rank)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceKeystoreInstance

public ResourceKeystoreInstance()
Method Detail

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 java.net.URL getPath()
Returns:
the keystorePath

setPath

public void setPath(java.net.URL 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-2011 Apache Software Foundation. All Rights Reserved.