org.jboss.security.authorization
Interface PolicyRegistration


public interface PolicyRegistration

Interface to register policies

Since:
Jun 18, 2006
Version:
$Revision: 86118 $
Author:
Anil Saldhana

Field Summary
static String ACL
          Represents a ACL policy
static String CUSTOM
          Represents a Custom policy
static String JACC
          Represents a JACC policy
static String XACML
          Represents an xacml policy
 
Method Summary
 void deRegisterPolicy(String contextID, String type)
          Unregister a policy
<T> T
getPolicy(String contextID, String type, Map<String,Object> contextMap)
          Obtain the registered policy for the context id
 void registerPolicy(String contextID, String type, InputStream stream)
          Register a policy given a xml based stream and a context id
 void registerPolicy(String contextID, String type, URL location)
          Register a policy given the location and a context id
<P> void
registerPolicyConfig(String contextId, String type, P policyConfig)
          Register a Policy Config model such as a JAXB model
 void registerPolicyConfigFile(String contextId, String type, InputStream stream)
          Register a policy config file (that lists locations of policies)
 

Field Detail

XACML

static final String XACML
Represents an xacml policy

See Also:
Constant Field Values

JACC

static final String JACC
Represents a JACC policy

See Also:
Constant Field Values

ACL

static final String ACL
Represents a ACL policy

See Also:
Constant Field Values

CUSTOM

static final String CUSTOM
Represents a Custom policy

See Also:
Constant Field Values
Method Detail

registerPolicy

void registerPolicy(String contextID,
                    String type,
                    URL location)
Register a policy given the location and a context id

Parameters:
contextID - an unique id representing the context
type - type of policy
location - location of the Policy File

registerPolicy

void registerPolicy(String contextID,
                    String type,
                    InputStream stream)
Register a policy given a xml based stream and a context id

Parameters:
contextID - an unique id representing the context
type - type of policy
stream - InputStream that is an XML stream

registerPolicyConfigFile

void registerPolicyConfigFile(String contextId,
                              String type,
                              InputStream stream)
Register a policy config file (that lists locations of policies)

Parameters:
contextId - an unique id representing the context
type - type of policy
stream - xml stream

registerPolicyConfig

<P> void registerPolicyConfig(String contextId,
                              String type,
                              P policyConfig)
Register a Policy Config model such as a JAXB model

Type Parameters:
P - Policy Config model
Parameters:
contextId -
type -
policyConfig -

deRegisterPolicy

void deRegisterPolicy(String contextID,
                      String type)
Unregister a policy

Parameters:
contextID - Context ID
type - the type of policy

getPolicy

<T> T getPolicy(String contextID,
                String type,
                Map<String,Object> contextMap)
Obtain the registered policy for the context id

Parameters:
contextID - Context ID
type - the type of policy (xacml, jacc, custom etc)
contextMap - A map that can be used by the implementation to determine the policy choice (typically null)


Copyright © 2009 JBoss Inc.. All Rights Reserved.