|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.security.keystore.FileKeystoreInstance
public class FileKeystoreInstance
Implementation of KeystoreInstance that accesses a keystore file on the local filesystem, identified by the file's name (the last component of the name only, not the full path).
| Field Summary | |
|---|---|
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
FileKeystoreInstance(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
URI keystorePath,
String keystoreName,
String keystorePassword,
String keyPasswords,
org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.gbean.AbstractName abstractName)
|
|
| Method Summary | |
|---|---|
void |
deleteEntry(String alias,
char[] storePassword)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
String |
generateCSR(String alias,
char[] storePassword)
|
void |
generateKeyPair(String alias,
char[] storePassword,
char[] keyPassword,
String keyAlgorithm,
int keySize,
String signatureAlgorithm,
int validity,
String commonName,
String orgUnit,
String organization,
String locality,
String state,
String country)
|
Certificate |
getCertificate(String alias)
Gets a particular certificate from the keystore. |
Certificate |
getCertificate(String alias,
char[] storePassword)
Gets a particular certificate from the keystore. |
String |
getCertificateAlias(Certificate cert,
char[] storePassword)
|
Certificate[] |
getCertificateChain(String alias,
char[] storePassword)
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
KeyManager[] |
getKeyManager(String algorithm,
String alias,
char[] storePassword)
|
String |
getKeystoreName()
|
PrivateKey |
getPrivateKey(String alias,
char[] storePassword,
char[] keyPassword)
Gets the private key with the specified alias. |
TrustManager[] |
getTrustManager(String algorithm,
char[] storePassword)
|
String[] |
getUnlockedKeys(char[] storePassword)
|
void |
importPKCS7Certificate(String alias,
String certbuf,
char[] storePassword)
|
void |
importTrustCertificate(Certificate cert,
String alias,
char[] storePassword)
|
boolean |
isKeyLocked(String alias)
Checks whether the specified private key is locked, which is to say, available for other components to use to generate socket factories. |
boolean |
isKeystoreLocked()
|
boolean |
isTrustStore(char[] storePassword)
|
String[] |
listPrivateKeys(char[] storePassword)
|
String[] |
listTrustCertificates(char[] storePassword)
|
void |
lockKeystore(char[] password)
|
void |
lockPrivateKey(String alias,
char[] storePassword)
|
void |
setKeyPasswords(String passwords)
|
void |
setKeystorePassword(String password)
|
void |
unlockKeystore(char[] password)
|
void |
unlockPrivateKey(String alias,
char[] storePassword,
char[] password)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public FileKeystoreInstance(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
URI keystorePath,
String keystoreName,
String keystorePassword,
String keyPasswords,
org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.gbean.AbstractName abstractName)
| Method Detail |
|---|
public void doStart()
throws Exception
doStart in interface org.apache.geronimo.gbean.GBeanLifecycleException
public void doStop()
throws Exception
doStop in interface org.apache.geronimo.gbean.GBeanLifecycleExceptionpublic void doFail()
doFail in interface org.apache.geronimo.gbean.GBeanLifecyclepublic static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
public String getKeystoreName()
getKeystoreName in interface org.apache.geronimo.management.geronimo.KeystoreInstance
public void unlockKeystore(char[] password)
throws org.apache.geronimo.management.geronimo.KeystoreException
unlockKeystore in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreExceptionpublic void setKeystorePassword(String password)
public void lockKeystore(char[] password)
throws org.apache.geronimo.management.geronimo.KeystoreException
lockKeystore in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreExceptionpublic boolean isKeystoreLocked()
isKeystoreLocked in interface org.apache.geronimo.management.geronimo.KeystoreInstance
public String[] listPrivateKeys(char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
listPrivateKeys in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public void unlockPrivateKey(String alias,
char[] storePassword,
char[] password)
throws org.apache.geronimo.management.geronimo.KeystoreException
unlockPrivateKey in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public String[] getUnlockedKeys(char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
getUnlockedKeys in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public boolean isTrustStore(char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
isTrustStore in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public void lockPrivateKey(String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
lockPrivateKey in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreExceptionpublic void setKeyPasswords(String passwords)
public boolean isKeyLocked(String alias)
isKeyLocked in interface org.apache.geronimo.management.geronimo.KeystoreInstance
public String[] listTrustCertificates(char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
listTrustCertificates in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public void importTrustCertificate(Certificate cert,
String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
importTrustCertificate in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public void generateKeyPair(String alias,
char[] storePassword,
char[] keyPassword,
String keyAlgorithm,
int keySize,
String signatureAlgorithm,
int validity,
String commonName,
String orgUnit,
String organization,
String locality,
String state,
String country)
throws org.apache.geronimo.management.geronimo.KeystoreException
generateKeyPair in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public String generateCSR(String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
generateCSR in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public void importPKCS7Certificate(String alias,
String certbuf,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
importPKCS7Certificate in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public void deleteEntry(String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
deleteEntry in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public KeyManager[] getKeyManager(String algorithm,
String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
getKeyManager in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public TrustManager[] getTrustManager(String algorithm,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
getTrustManager in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public PrivateKey getPrivateKey(String alias,
char[] storePassword,
char[] keyPassword)
throws org.apache.geronimo.management.geronimo.KeyNotFoundException,
org.apache.geronimo.management.geronimo.KeystoreException,
org.apache.geronimo.management.geronimo.KeystoreIsLocked
getPrivateKey in interface org.apache.geronimo.management.geronimo.KeystoreInstancealias - The alias of the private key to be retrievedstorePassword - The password used to access the keystorekeyPassword - The password to use to protect the new key
org.apache.geronimo.management.geronimo.KeyNotFoundException
org.apache.geronimo.management.geronimo.KeystoreException
org.apache.geronimo.management.geronimo.KeystoreIsLocked
public Certificate getCertificate(String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreIsLocked,
org.apache.geronimo.management.geronimo.KeyNotFoundException,
org.apache.geronimo.management.geronimo.KeystoreException
getCertificate in interface org.apache.geronimo.management.geronimo.KeystoreInstancealias - The certificate to look at
org.apache.geronimo.management.geronimo.KeyNotFoundException
KeyStoreException
org.apache.geronimo.management.geronimo.KeystoreIsLocked
org.apache.geronimo.management.geronimo.KeystoreException
public String getCertificateAlias(Certificate cert,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
getCertificateAlias in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreException
public Certificate[] getCertificateChain(String alias,
char[] storePassword)
throws org.apache.geronimo.management.geronimo.KeystoreException
getCertificateChain in interface org.apache.geronimo.management.geronimo.KeystoreInstanceorg.apache.geronimo.management.geronimo.KeystoreExceptionpublic Certificate getCertificate(String alias)
getCertificate in interface org.apache.geronimo.management.geronimo.KeystoreInstancealias - The certificate to look at
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||