Class SecurityConfiguration


  • public class SecurityConfiguration
    extends Object
    Class that provides the Configuration for authentication, authorization, mapping info etc It also holds the information like JSSE keystores, keytypes and other crypto configuration
    Since:
    Aug 28, 2006
    Version:
    $Revision$
    Author:
    Anil Saldhana
    • Constructor Detail

      • SecurityConfiguration

        public SecurityConfiguration()
    • Method Detail

      • addApplicationPolicy

        public static void addApplicationPolicy​(ApplicationPolicy applicationPolicy)
        Add an application policy
        Parameters:
        applicationPolicy - Application Policy
      • removeApplicationPolicy

        public static void removeApplicationPolicy​(String name)
        Remove the Application Policy
        Parameters:
        name - Name of the Policy
      • getApplicationPolicy

        public static ApplicationPolicy getApplicationPolicy​(String policyName)
        Get an application policy
        Parameters:
        policyName - Name of the Policy (such as "other", "messaging")
        Returns:
      • getCipherAlgorithm

        public static String getCipherAlgorithm()
      • setCipherAlgorithm

        public static void setCipherAlgorithm​(String ca)
      • getCipherKey

        public static Key getCipherKey()
      • setCipherKey

        public static void setCipherKey​(Key ca)
      • getIterationCount

        public static int getIterationCount()
      • setIterationCount

        public static void setIterationCount​(int count)
        Set the iteration count used with PBE based on the keystore password.
        Parameters:
        count - - an iteration count randomization value
      • getSalt

        public static String getSalt()
      • setSalt

        public static void setSalt​(String s)
        Set the salt used with PBE based on the keystore password.
        Parameters:
        s - - an 8 char randomization string
      • getKeyStoreType

        public static String getKeyStoreType()
        KeyStore implementation type being used.
        Returns:
        the KeyStore implementation type being used.
      • setKeyStoreType

        public static void setKeyStoreType​(String type)
        Set the type of KeyStore implementation to use. This is passed to the KeyStore.getInstance() factory method.
      • getKeyStoreURL

        public static String getKeyStoreURL()
        Get the KeyStore database URL string.
      • setKeyStoreURL

        public static void setKeyStoreURL​(String storeURL)
        Set the KeyStore database URL string. This is used to obtain an InputStream to initialize the KeyStore.
      • getKeyStorePass

        public static String getKeyStorePass()
        Get the credential string for the KeyStore.
      • setKeyStorePass

        public static void setKeyStorePass​(String password)
        Set the credential string for the KeyStore.
      • getTrustStoreType

        public static String getTrustStoreType()
        Get the type of the trust store
        Returns:
        the type of the trust store
      • setTrustStoreType

        public static void setTrustStoreType​(String type)
        Set the type of the trust store
        Parameters:
        type - - the trust store implementation type
      • getTrustStorePass

        public static String getTrustStorePass()
        Set the credential string for the trust store.
      • setTrustStorePass

        public static void setTrustStorePass​(String password)
        Set the credential string for the trust store.
      • getTrustStoreURL

        public static String getTrustStoreURL()
        Get the trust store database URL string.
      • setTrustStoreURL

        public static void setTrustStoreURL​(String storeURL)
        Set the trust store database URL string. This is used to obtain an InputStream to initialize the trust store.
      • isDeepCopySubjectMode

        public static boolean isDeepCopySubjectMode()
      • setDeepCopySubjectMode

        public static void setDeepCopySubjectMode​(boolean dcsm)