|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PolicyRegistration
Interface to register policies
| Field Summary | |
|---|---|
static java.lang.String |
ACL
Represents a ACL policy |
static java.lang.String |
CUSTOM
Represents a Custom policy |
static java.lang.String |
JACC
Represents a JACC policy |
static java.lang.String |
XACML
Represents an xacml policy |
| Method Summary | ||
|---|---|---|
void |
deRegisterPolicy(java.lang.String contextID,
java.lang.String type)
Unregister a policy |
|
|
getPolicy(java.lang.String contextID,
java.lang.String type,
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.lang.String type,
java.io.InputStream stream)
Register a policy given a xml based stream and a context id |
|
void |
registerPolicy(java.lang.String contextID,
java.lang.String type,
java.net.URL location)
Register a policy given the location and a context id |
|
void |
registerPolicyConfigFile(java.lang.String contextId,
java.lang.String type,
java.io.InputStream stream)
Register a policy config file (that lists locations of policies) |
|
| Field Detail |
|---|
static final java.lang.String XACML
static final java.lang.String JACC
static final java.lang.String ACL
static final java.lang.String CUSTOM
| Method Detail |
|---|
void registerPolicy(java.lang.String contextID,
java.lang.String type,
java.net.URL location)
contextID - an unique id representing the contexttype - type of policylocation - location of the Policy File
void registerPolicy(java.lang.String contextID,
java.lang.String type,
java.io.InputStream stream)
contextID - an unique id representing the contexttype - type of policystream - InputStream that is an XML stream
void registerPolicyConfigFile(java.lang.String contextId,
java.lang.String type,
java.io.InputStream stream)
contextId - an unique id representing the contexttype - type of policystream - xml stream
void deRegisterPolicy(java.lang.String contextID,
java.lang.String type)
contextID - Context IDtype - the type of policy
<T> T getPolicy(java.lang.String contextID,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> contextMap)
contextID - Context IDtype - 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||