org.jboss.security.authorization
Interface PolicyRegistration


public interface PolicyRegistration

Interface to register policies

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

Method Summary
 void deRegisterPolicy(java.lang.String contextID)
          Unregister a policy
 java.lang.Object getPolicy(java.lang.String contextID, java.util.Map<java.lang.String,java.lang.Object> contextMap)
          Obtain the registered policy for the context id
 void registerPolicy(java.lang.String contextID, java.io.InputStream stream)
          Register a policy given a xml based stream and a context id
 void registerPolicy(java.lang.String contextID, java.net.URL location)
          Register a policy given the location and a context id
 

Method Detail

registerPolicy

void registerPolicy(java.lang.String contextID,
                    java.net.URL location)
Register a policy given the location and a context id

Parameters:
contextID -
location - location of the Policy File

registerPolicy

void registerPolicy(java.lang.String contextID,
                    java.io.InputStream stream)
Register a policy given a xml based stream and a context id

Parameters:
contextID -
stream - InputStream that is an XML stream

deRegisterPolicy

void deRegisterPolicy(java.lang.String contextID)
Unregister a policy

Parameters:
contextID - Context ID

getPolicy

java.lang.Object getPolicy(java.lang.String contextID,
                           java.util.Map<java.lang.String,java.lang.Object> contextMap)
Obtain the registered policy for the context id

Parameters:
contextID - Context ID
contextMap - A map that can be used by the implementation to determine the policy choice (typically null)


Copyright © 2008 JBoss Inc.. All Rights Reserved.