org.jboss.portal.security.jacc
Interface SecurityProvider

All Known Subinterfaces:
JBossSecurityProvider
All Known Implementing Classes:
JBossSecurityProviderImpl

public interface SecurityProvider

General security provider interface to access the policy configuration and the policy that goes with it.


Method Summary
 java.security.Policy getPolicy()
          Get the active security policy that allows security checks
 javax.security.jacc.PolicyConfiguration getPolicyConfiguration(java.lang.String contextID, boolean remove)
          Get the policy configuration interface that allows to configure the policy
 boolean inService(java.lang.String policyContextID)
          Test if the provided context id has an active policy configuration.
 

Method Detail

inService

public boolean inService(java.lang.String policyContextID)
                  throws javax.security.jacc.PolicyContextException
Test if the provided context id has an active policy configuration.

Parameters:
policyContextID - the identifier of the policy context to test
Returns:
true if there is a policy context for the provided id
Throws:
javax.security.jacc.PolicyContextException

getPolicyConfiguration

public javax.security.jacc.PolicyConfiguration getPolicyConfiguration(java.lang.String contextID,
                                                                      boolean remove)
                                                               throws javax.security.jacc.PolicyContextException
Get the policy configuration interface that allows to configure the policy

Parameters:
contextID - the policy context identifier
remove - true, if the policy configuration should be removed from the policy
Returns:
a policy configuration for the provided context id
Throws:
javax.security.jacc.PolicyContextException

getPolicy

public java.security.Policy getPolicy()
Get the active security policy that allows security checks

Returns:
the active security policy