Class KeyStoreInformation
- java.lang.Object
-
- org.apache.synapse.securevault.definition.KeyStoreInformation
-
- Direct Known Subclasses:
IdentityKeyStoreInformation
,TrustKeyStoreInformation
public abstract class KeyStoreInformation extends Object
Encapsulates the keyStore related information
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENABLE_HOST_NAME_VERIFIER
static String
KEY_STORE_CERTIFICATE_FILE_PATH
protected org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Modifier Constructor Description protected
KeyStoreInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(String name, String value)
String
getAlias()
protected KeyStore
getKeyStore()
Constructs the KeyStore according to the store typeSecretInformation
getKeyStorePasswordProvider()
String
getLocation()
String
getParameter(String name)
String
getProvider()
protected void
handleException(String msg)
protected void
handleException(String msg, Exception e)
void
setAlias(String alias)
void
setKeyStorePasswordProvider(SecretInformation keyStorePasswordProvider)
void
setLocation(String location)
void
setProvider(String provider)
void
setStoreType(String storeType)
-
-
-
Field Detail
-
log
protected final org.apache.commons.logging.Log log
-
KEY_STORE_CERTIFICATE_FILE_PATH
public static final String KEY_STORE_CERTIFICATE_FILE_PATH
- See Also:
- Constant Field Values
-
ENABLE_HOST_NAME_VERIFIER
public static final String ENABLE_HOST_NAME_VERIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setStoreType
public void setStoreType(String storeType)
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getProvider
public String getProvider()
-
setProvider
public void setProvider(String provider)
-
setKeyStorePasswordProvider
public void setKeyStorePasswordProvider(SecretInformation keyStorePasswordProvider)
-
getKeyStore
protected KeyStore getKeyStore()
Constructs the KeyStore according to the store type- Returns:
- KeyStore Instance
-
handleException
protected void handleException(String msg)
-
getKeyStorePasswordProvider
public SecretInformation getKeyStorePasswordProvider()
-
-