br.com.esec.icpm.signer.security
Class SecurityConfig

java.lang.Object
  extended by br.com.esec.icpm.signer.security.SecurityConfig

public class SecurityConfig
extends Object


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
SecurityConfig()
           
 
Method Summary
static Properties getConfig()
           
static String getKeyAlias()
           
static KeyStore getKeystore()
           
static String getKeystorePassword()
           
static String getKeystorePath()
           
static String getKeystoreType()
           
static KeyStore getTruststore()
           
static String getTruststorePath()
           
static boolean isAllowAllHosts()
           
static void load(String propertiesFilename)
           
static void load(String propertiesFilename, Class<?> clazzToLoadResource)
           
static void set(String keystorePath, String keystoreType, String keystorePassword, String keyAlias, String truststorePath, String truststoreType, String truststorePassword, Boolean allowAllHosts)
          Deprecated. 
static void setAllowAllHosts(Boolean allowAllHosts)
           
static void setKeyAlias(String keyAlias)
           
static void setKeystorePassword(String keystorePassword)
           
static void setKeystorePath(String keystorePath)
           
static void setKeystoreType(String keystoreType)
           
static void setTruststorePassword(String truststorePassword)
           
static void setTruststorePath(String truststorePath)
           
static void setTruststoreType(String truststoreType)
           
static void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

SecurityConfig

public SecurityConfig()
Method Detail

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.