|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.xacml.sunxacml.finder.PolicyFinderModule
org.jboss.security.xacml.sunxacml.support.finder.URLPolicyFinderModule
public class URLPolicyFinderModule
This module supports references made with resolvable URLs (eg, http or file pointers). No policies are cached. Instead, all policy references are resolved in real-time. To make this module as generally applicable as possible, no errors are ever returned when attempting to resolve a policy. This means that if a resolved policy is invalid, a server cannot be contacted, etc., this module simply reports that it cannot provide a policy. If you need to report errors, or support any caching, you have to write your own implementation.
This module is provided as an example, but is still fully functional, and
should be useful for many simple applications. This is provided in the
support package rather than the core codebase because it
implements non-standard behavior.
| Constructor Summary | |
|---|---|
URLPolicyFinderModule()
Creates a URLPolicyFinderModule. |
|
URLPolicyFinderModule(String schemaFile)
Creates a URLPolicyFinderModule that may do schema
validation of policies. |
|
| Method Summary | |
|---|---|
PolicyFinderResult |
findPolicy(URI idReference,
int type,
VersionConstraints constraints,
PolicyMetaData parentMetaData)
Attempts to find a policy by reference, based on the provided parameters. |
void |
init(PolicyFinder finder)
Initialize this module. |
boolean |
isIdReferenceSupported()
Always returns true since this module does support
finding policies based on reference. |
| Methods inherited from class org.jboss.security.xacml.sunxacml.finder.PolicyFinderModule |
|---|
findPolicy, getIdentifier, invalidateCache, isRequestSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLPolicyFinderModule()
URLPolicyFinderModule. The schema file used
to validate policies is specified by the property
PolicyReader.POLICY_SCHEMA_PROPERTY. If the retrieved
property is null, then no schema validation will occur.
public URLPolicyFinderModule(String schemaFile)
URLPolicyFinderModule that may do schema
validation of policies.
schemaFile - the schema file to use for validation, or null if
validation isn't desired| Method Detail |
|---|
public boolean isIdReferenceSupported()
true since this module does support
finding policies based on reference.
isIdReferenceSupported in class PolicyFinderModulepublic void init(PolicyFinder finder)
PolicyFinder when a PDP is created.
init in class PolicyFinderModulefinder - the PolicyFinder using this module
public PolicyFinderResult findPolicy(URI idReference,
int type,
VersionConstraints constraints,
PolicyMetaData parentMetaData)
findPolicy in class PolicyFinderModuleidReference - an identifier specifying some policytype - type of reference (policy or policySet) as identified by
the fields in PolicyReferenceconstraints - any optional constraints on the version of the
referenced policy (this will never be null, but
it may impose no constraints, and in fact will
never impose constraints when used from a pre-2.0
XACML policy)parentMetaData - the meta-data from the parent policy, which
provides XACML version, factories, etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||