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 Summary
Fields Modifier and Type Field Description static String
JAVA_DEFAULT_KEYSTORE_PASSWORD
The default as shipped with Java.static String
JAVA_DEFAULT_KEYSTORE_PATH
This path is actually part of the java specification.static String
JAVA_DEFAULT_KEYSTORE_TYPE
The default type for the built in java keystore.static String
KEYSTORE_TYPE_JKS
static String
KEYSTORE_TYPE_PKCS12
-
Constructor Summary
Constructors Constructor Description SSLKeystoreConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getKeyManagerFactory()
String
getKeystore()
byte[]
getKeystoreBytes()
InputStream
getKeystoreIS()
String
getKeystorePassword()
char[]
getKeystorePasswordChars()
Get the password to the keystore as a character arrayString
getKeystoreType()
boolean
isUseDefaultJavaTrustStore()
static void
main(String[] args)
void
setKeyManagerFactory(String keyManagerFactory)
void
setKeystore(String keystore)
void
setKeystoreBytes(byte[] keystoreBytes)
void
setKeystorePassword(String keystorePassword)
void
setKeystoreType(String keystoreType)
void
setUseDefaultJavaTrustStore(boolean useDefaultJavaKeyStore)
String
toString()
-
-
-
Field Detail
-
KEYSTORE_TYPE_JKS
public static final String KEYSTORE_TYPE_JKS
- See Also:
- Constant Field Values
-
KEYSTORE_TYPE_PKCS12
public static final String KEYSTORE_TYPE_PKCS12
- See Also:
- Constant Field Values
-
JAVA_DEFAULT_KEYSTORE_PATH
public static final String JAVA_DEFAULT_KEYSTORE_PATH
This path is actually part of the java specification.
-
JAVA_DEFAULT_KEYSTORE_PASSWORD
public 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_TYPE
public static final String JAVA_DEFAULT_KEYSTORE_TYPE
The default type for the built in java keystore. "jks"- See Also:
- Constant Field Values
-
-
Method Detail
-
isUseDefaultJavaTrustStore
public boolean isUseDefaultJavaTrustStore()
-
setUseDefaultJavaTrustStore
public void setUseDefaultJavaTrustStore(boolean useDefaultJavaKeyStore)
-
setKeyManagerFactory
public void setKeyManagerFactory(String keyManagerFactory)
-
setKeystorePassword
public void setKeystorePassword(String keystorePassword)
-
setKeystoreType
public void setKeystoreType(String keystoreType)
-
getKeystorePassword
public String getKeystorePassword()
-
getKeystoreType
public String getKeystoreType()
-
getKeystorePasswordChars
public char[] getKeystorePasswordChars()
Get the password to the keystore as a character array- Returns:
-
setKeystore
public void setKeystore(String keystore)
-
getKeystore
public String getKeystore()
-
getKeystoreBytes
public byte[] getKeystoreBytes()
-
setKeystoreBytes
public void setKeystoreBytes(byte[] keystoreBytes)
-
getKeystoreIS
public InputStream getKeystoreIS() throws FileNotFoundException
- Throws:
FileNotFoundException
-
getKeyManagerFactory
public String getKeyManagerFactory()
-
main
public static void main(String[] args)
-
-