org.jboss.security.config
Class SecurityConfiguration

java.lang.Object
  extended by org.jboss.security.config.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 Summary
SecurityConfiguration()
           
 
Method Summary
static void addApplicationPolicy(ApplicationPolicy aP)
          Add an application policy
static ApplicationPolicy getApplicationPolicy(String policyName)
          Get an application policy
static String getCipherAlgorithm()
           
static Key getCipherKey()
           
static AlgorithmParameterSpec getCipherSpec()
           
static int getIterationCount()
           
static String getKeyStorePass()
          Get the credential string for the KeyStore.
static String getKeyStoreType()
          KeyStore implementation type being used.
static String getKeyStoreURL()
          Get the KeyStore database URL string.
static String getSalt()
           
static String getTrustStorePass()
          Set the credential string for the trust store.
static String getTrustStoreType()
          Get the type of the trust store
static String getTrustStoreURL()
          Get the trust store database URL string.
static boolean isDeepCopySubjectMode()
           
static void removeApplicationPolicy(String name)
          Remove the Application Policy
static void setCipherAlgorithm(String ca)
           
static void setCipherKey(Key ca)
           
static void setCipherSpec(AlgorithmParameterSpec aps)
           
static void setDeepCopySubjectMode(boolean dcsm)
           
static void setIterationCount(int count)
          Set the iteration count used with PBE based on the keystore password.
static void setKeyStorePass(String password)
          Set the credential string for the KeyStore.
static void setKeyStoreType(String type)
          Set the type of KeyStore implementation to use.
static void setKeyStoreURL(String storeURL)
          Set the KeyStore database URL string.
static void setSalt(String s)
          Set the salt used with PBE based on the keystore password.
static void setTrustStorePass(String password)
          Set the credential string for the trust store.
static void setTrustStoreType(String type)
          Set the type of the trust store
static void setTrustStoreURL(String storeURL)
          Set the trust store database URL string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConfiguration

public SecurityConfiguration()
Method Detail

addApplicationPolicy

public static void addApplicationPolicy(ApplicationPolicy aP)
Add an application policy

Parameters:
aP - 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)

getCipherSpec

public static AlgorithmParameterSpec getCipherSpec()

setCipherSpec

public static void setCipherSpec(AlgorithmParameterSpec aps)

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:
salt - - 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)


Copyright © 2009 JBoss Inc.. All Rights Reserved.