Interface PolicyRegistration

  • All Known Implementing Classes:
    JBossPolicyRegistration

    public interface PolicyRegistration
    Interface to register policies
    Since:
    Jun 18, 2006
    Version:
    $Revision$
    Author:
    Anil Saldhana
    • 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)