Package edu.uiuc.ncsa.security.util.ssl
Class SSLKeystoreConfiguration
- java.lang.Object
- 
- edu.uiuc.ncsa.security.util.ssl.SSLKeystoreConfiguration
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- SSLConfiguration
 
 public class SSLKeystoreConfiguration extends Object implements Serializable A bean that holds the configuration for an keystore. If you have a custom keystore, this will point to it. This is needed, e.g., by MyTrustManagerCreated by Jeff Gaynor 
 on Jun 27, 2010 at 11:29:15 AM- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringJAVA_DEFAULT_KEYSTORE_PASSWORDThe default as shipped with Java.static StringJAVA_DEFAULT_KEYSTORE_PATHThis path is actually part of the java specification.static StringJAVA_DEFAULT_KEYSTORE_TYPEThe default type for the built in java keystore.static StringKEYSTORE_TYPE_JKSstatic StringKEYSTORE_TYPE_PKCS12
 - 
Constructor SummaryConstructors Constructor Description SSLKeystoreConfiguration()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetKeyManagerFactory()StringgetKeystore()byte[]getKeystoreBytes()InputStreamgetKeystoreIS()StringgetKeystorePassword()char[]getKeystorePasswordChars()Get the password to the keystore as a character arrayStringgetKeystoreType()booleanisUseDefaultJavaTrustStore()static voidmain(String[] args)voidsetKeyManagerFactory(String keyManagerFactory)voidsetKeystore(String keystore)voidsetKeystoreBytes(byte[] keystoreBytes)voidsetKeystorePassword(String keystorePassword)voidsetKeystoreType(String keystoreType)voidsetUseDefaultJavaTrustStore(boolean useDefaultJavaKeyStore)StringtoString()
 
- 
- 
- 
Field Detail- 
KEYSTORE_TYPE_JKSpublic static final String KEYSTORE_TYPE_JKS - See Also:
- Constant Field Values
 
 - 
KEYSTORE_TYPE_PKCS12public static final String KEYSTORE_TYPE_PKCS12 - See Also:
- Constant Field Values
 
 - 
JAVA_DEFAULT_KEYSTORE_PATHpublic static final String JAVA_DEFAULT_KEYSTORE_PATH This path is actually part of the java specification.
 - 
JAVA_DEFAULT_KEYSTORE_PASSWORDpublic static final String JAVA_DEFAULT_KEYSTORE_PASSWORD The default as shipped with Java. If you change the keystore, you should change the password and set it in the configuration.- See Also:
- Constant Field Values
 
 - 
JAVA_DEFAULT_KEYSTORE_TYPEpublic static final String JAVA_DEFAULT_KEYSTORE_TYPE The default type for the built in java keystore. "jks"- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isUseDefaultJavaTrustStorepublic boolean isUseDefaultJavaTrustStore() 
 - 
setUseDefaultJavaTrustStorepublic void setUseDefaultJavaTrustStore(boolean useDefaultJavaKeyStore) 
 - 
setKeyManagerFactorypublic void setKeyManagerFactory(String keyManagerFactory) 
 - 
setKeystorePasswordpublic void setKeystorePassword(String keystorePassword) 
 - 
setKeystoreTypepublic void setKeystoreType(String keystoreType) 
 - 
getKeystorePasswordpublic String getKeystorePassword() 
 - 
getKeystoreTypepublic String getKeystoreType() 
 - 
getKeystorePasswordCharspublic char[] getKeystorePasswordChars() Get the password to the keystore as a character array- Returns:
 
 - 
setKeystorepublic void setKeystore(String keystore) 
 - 
getKeystorepublic String getKeystore() 
 - 
getKeystoreBytespublic byte[] getKeystoreBytes() 
 - 
setKeystoreBytespublic void setKeystoreBytes(byte[] keystoreBytes) 
 - 
getKeystoreISpublic InputStream getKeystoreIS() throws FileNotFoundException - Throws:
- FileNotFoundException
 
 - 
getKeyManagerFactorypublic String getKeyManagerFactory() 
 - 
mainpublic static void main(String[] args) 
 
- 
 
-