|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.crypto.ssl.GgSecureKeyStore
public class GgSecureKeyStore
SecureKeyStore for SLL
Constructor Summary | |
---|---|
GgSecureKeyStore(String _keyStorePasswd,
String _keyPassword)
Initialize empty KeyStore. |
|
GgSecureKeyStore(String keyStoreFilename,
String _keyStorePasswd,
String _keyPassword)
Initialize the SecureKeyStore with no TrustStore from file |
|
GgSecureKeyStore(String keyStoreFilename,
String _keyStorePasswd,
String _keyPassword,
String trustStoreFilename,
String _trustStorePasswd,
boolean needClientAuthent)
Initialize the SecureKeyStore and TrustStore from files |
Method Summary | |
---|---|
boolean |
deleteKeyFromKeyStore(String alias)
Delete a Key from the KeyStore based on its alias |
boolean |
deleteKeyFromTrustStore(String alias)
Delete a Key from the TrustStore based on its alias |
char[] |
getCertificatePassword()
|
KeyManagerFactory |
getKeyManagerFactory()
|
char[] |
getKeyStorePassword()
|
char[] |
getKeyTrustStorePassword()
|
GgSecureTrustManagerFactory |
getSecureTrustManagerFactory()
|
boolean |
initEmptyTrustStore()
Initialize an empty TrustStore |
void |
initKeyStore(String keyStoreFilename,
String _keyStorePasswd,
String _keyPassword)
Initialize the SecureKeyStore with no TrustStore from file |
void |
initTrustStore(String trustStoreFilename,
String _trustStorePasswd,
boolean needClientAuthent)
Initialize the TrustStore from a filename and its password |
static Certificate |
loadX509Certificate(String filename)
Load a certificate from a filename |
boolean |
saveKeyStore(String filename)
Save a KeyStore to a file |
boolean |
saveTrustStore(String filename)
Save the TrustStore to a file |
boolean |
setKeytoKeyStore(String alias,
Key key,
Certificate[] chain)
Add a Key and its certificates into the KeyStore based on its alias |
boolean |
setKeytoTrustStore(String alias,
Certificate cert)
Add a Certificate into the TrustStore based on its alias |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GgSecureKeyStore(String _keyStorePasswd, String _keyPassword) throws CryptoException
_keyStorePasswd
- _keyPassword
-
CryptoException
public GgSecureKeyStore(String keyStoreFilename, String _keyStorePasswd, String _keyPassword) throws CryptoException
keyStoreFilename
- _keyStorePasswd
- _keyPassword
-
CryptoException
public GgSecureKeyStore(String keyStoreFilename, String _keyStorePasswd, String _keyPassword, String trustStoreFilename, String _trustStorePasswd, boolean needClientAuthent) throws CryptoException
keyStoreFilename
- _keyStorePasswd
- _keyPassword
- trustStoreFilename
- if Null, no TrustKeyStore will be created_trustStorePasswd
- needClientAuthent
- True if the TrustStore is also used for Client Authentication
CryptoException
Method Detail |
---|
public void initKeyStore(String keyStoreFilename, String _keyStorePasswd, String _keyPassword) throws CryptoException
keyStoreFilename
- _keyStorePasswd
- _keyPassword
-
CryptoException
public boolean deleteKeyFromKeyStore(String alias)
alias
-
public boolean setKeytoKeyStore(String alias, Key key, Certificate[] chain)
alias
- key
- chain
-
public boolean saveKeyStore(String filename)
filename
-
public void initTrustStore(String trustStoreFilename, String _trustStorePasswd, boolean needClientAuthent) throws CryptoException
trustStoreFilename
- _trustStorePasswd
- needClientAuthent
- True if the TrustStore is also to authenticate clients
CryptoException
public boolean initEmptyTrustStore()
public boolean deleteKeyFromTrustStore(String alias)
alias
-
public boolean setKeytoTrustStore(String alias, Certificate cert)
alias
- cert
-
public boolean saveTrustStore(String filename)
filename
-
public static Certificate loadX509Certificate(String filename) throws CertificateException, FileNotFoundException
filename
-
CertificateException
FileNotFoundException
public char[] getCertificatePassword()
public char[] getKeyStorePassword()
public char[] getKeyTrustStorePassword()
public GgSecureTrustManagerFactory getSecureTrustManagerFactory()
public KeyManagerFactory getKeyManagerFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |