org.apache.geronimo.console.core.keystore
Class KeyStoreGBean
java.lang.Object
org.apache.geronimo.console.core.keystore.KeyStoreGBean
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle
- public class KeyStoreGBean
- extends Object
- implements org.apache.geronimo.gbean.GBeanLifecycle
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Method Summary |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
X509Certificate |
generateCert(PublicKey publicKey,
PrivateKey privateKey,
String sigalg,
int validity,
String cn,
String ou,
String o,
String l,
String st,
String c)
|
String |
generateCSR(String alias)
|
String |
generateCSR(X509Certificate cert,
PrivateKey signingKey)
|
void |
generateKeyPair(String alias,
String keyalg,
Integer keysize,
String sigalg,
Integer validity,
String cn,
String ou,
String o,
String l,
String st,
String c)
|
Certificate[] |
getCertificateChain(String alias)
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
KeyEntryInfo |
getKeyEntryInfo(String alias)
|
List |
getKeyStoreEntries()
|
String |
getKeyStoreLocation()
|
String |
getKeyStorePassword()
|
String |
getKeyStoreProvider()
|
int |
getKeyStoreSize()
|
String |
getKeyStoreType()
|
org.apache.geronimo.system.serverinfo.ServerInfo |
getServerInfo()
|
void |
importPKCS7Certificate(String alias,
InputStream is)
|
void |
importPKCS7Certificate(String alias,
String certbuf)
|
void |
importTrustedX509Certificate(String alias,
String certfile)
|
void |
saveKeyStore()
|
void |
setKeyStoreLocation(String keyStoreLocation)
|
void |
setKeyStorePassword(String keyStorePassword)
|
void |
setKeyStoreProvider(String keyStoreProvider)
|
void |
setKeyStoreType(String keyStoreType)
|
void |
setServerInfo(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
KeyStoreGBean
public KeyStoreGBean()
doStart
public void doStart()
throws org.apache.geronimo.gbean.WaitingException,
Exception
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
org.apache.geronimo.gbean.WaitingException
Exception
doStop
public void doStop()
throws org.apache.geronimo.gbean.WaitingException,
Exception
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
org.apache.geronimo.gbean.WaitingException
Exception
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
setKeyStoreType
public void setKeyStoreType(String keyStoreType)
getKeyStoreType
public String getKeyStoreType()
setKeyStoreProvider
public void setKeyStoreProvider(String keyStoreProvider)
getKeyStoreProvider
public String getKeyStoreProvider()
setKeyStoreLocation
public void setKeyStoreLocation(String keyStoreLocation)
getServerInfo
public org.apache.geronimo.system.serverinfo.ServerInfo getServerInfo()
setServerInfo
public void setServerInfo(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo)
getKeyStoreLocation
public String getKeyStoreLocation()
setKeyStorePassword
public void setKeyStorePassword(String keyStorePassword)
getKeyStorePassword
public String getKeyStorePassword()
getKeyStoreSize
public int getKeyStoreSize()
throws KeyStoreException
- Throws:
KeyStoreException
getKeyEntryInfo
public KeyEntryInfo getKeyEntryInfo(String alias)
throws KeyStoreException
- Throws:
KeyStoreException
getKeyStoreEntries
public List getKeyStoreEntries()
throws KeyStoreException
- Throws:
KeyStoreException
getCertificateChain
public Certificate[] getCertificateChain(String alias)
throws KeyStoreException
- Throws:
KeyStoreException
generateCSR
public String generateCSR(String alias)
throws Exception
- Throws:
Exception
generateCSR
public String generateCSR(X509Certificate cert,
PrivateKey signingKey)
throws Exception
- Throws:
Exception
generateKeyPair
public void generateKeyPair(String alias,
String keyalg,
Integer keysize,
String sigalg,
Integer validity,
String cn,
String ou,
String o,
String l,
String st,
String c)
throws NoSuchAlgorithmException,
KeyStoreException,
SignatureException,
InvalidKeyException,
CertificateException,
IOException
- Throws:
NoSuchAlgorithmException
KeyStoreException
SignatureException
InvalidKeyException
CertificateException
IOException
saveKeyStore
public void saveKeyStore()
throws IOException,
KeyStoreException,
CertificateException,
NoSuchAlgorithmException
- Throws:
IOException
KeyStoreException
CertificateException
NoSuchAlgorithmException
generateCert
public X509Certificate generateCert(PublicKey publicKey,
PrivateKey privateKey,
String sigalg,
int validity,
String cn,
String ou,
String o,
String l,
String st,
String c)
throws SignatureException,
InvalidKeyException
- Throws:
SignatureException
InvalidKeyException
importTrustedX509Certificate
public void importTrustedX509Certificate(String alias,
String certfile)
throws FileNotFoundException,
CertificateException,
KeyStoreException,
IOException,
NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
FileNotFoundException
CertificateException
KeyStoreException
IOException
NoSuchAlgorithmException
NoSuchProviderException
importPKCS7Certificate
public void importPKCS7Certificate(String alias,
String certbuf)
throws CertificateException,
NoSuchProviderException,
KeyStoreException,
NoSuchAlgorithmException,
UnrecoverableKeyException,
IOException
- Throws:
CertificateException
NoSuchProviderException
KeyStoreException
NoSuchAlgorithmException
UnrecoverableKeyException
IOException
importPKCS7Certificate
public void importPKCS7Certificate(String alias,
InputStream is)
throws CertificateException,
NoSuchProviderException,
KeyStoreException,
NoSuchAlgorithmException,
UnrecoverableKeyException,
IOException
- Throws:
CertificateException
NoSuchProviderException
KeyStoreException
NoSuchAlgorithmException
UnrecoverableKeyException
IOException
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.