br.com.esec.icpm.signer.security
Class SecurityConfig
java.lang.Object
br.com.esec.icpm.signer.security.SecurityConfig
public class SecurityConfig
- extends Object
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
SecurityConfig
public SecurityConfig()
getConfig
public static Properties getConfig()
getKeystore
public static KeyStore getKeystore()
throws KeyStoreException,
IOException,
NoSuchAlgorithmException,
CertificateException
- Throws:
KeyStoreException
IOException
NoSuchAlgorithmException
CertificateException
getTruststore
public static KeyStore getTruststore()
throws KeyStoreException,
CertificateException,
NoSuchAlgorithmException,
IOException
- Throws:
KeyStoreException
CertificateException
NoSuchAlgorithmException
IOException
validate
public static void validate()
load
public static void load(String propertiesFilename)
throws IOException
- Throws:
IOException
load
public static void load(String propertiesFilename,
@Deprecated
Class<?> clazzToLoadResource)
throws IOException
- Throws:
IOException
set
@Deprecated
public static void set(String keystorePath,
String keystoreType,
String keystorePassword,
String keyAlias,
String truststorePath,
String truststoreType,
String truststorePassword,
Boolean allowAllHosts)
- Deprecated.
getKeyAlias
public static String getKeyAlias()
getKeystorePath
public static String getKeystorePath()
getKeystoreType
public static String getKeystoreType()
getKeystorePassword
public static String getKeystorePassword()
getTruststorePath
public static String getTruststorePath()
isAllowAllHosts
public static boolean isAllowAllHosts()
setAllowAllHosts
public static void setAllowAllHosts(Boolean allowAllHosts)
setTruststorePassword
public static void setTruststorePassword(String truststorePassword)
setTruststoreType
public static void setTruststoreType(String truststoreType)
setTruststorePath
public static void setTruststorePath(String truststorePath)
setKeyAlias
public static void setKeyAlias(String keyAlias)
setKeystorePassword
public static void setKeystorePassword(String keystorePassword)
setKeystoreType
public static void setKeystoreType(String keystoreType)
setKeystorePath
public static void setKeystorePath(String keystorePath)
Copyright © 2015. All rights reserved.