|
JBoss port of sunxacml 2.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.xacml.sunxacml.finder.AttributeFinderModule
org.jboss.security.xacml.sunxacml.finder.impl.CurrentEnvModule
public class CurrentEnvModule
Supports the current date, time, and dateTime values. The XACML specification states that these three values must always be available to a PDP. They may be included in the request, but if they're not, a PDP must be able to recognize the attribute and generate a correct value.
The XACML specification doesn't require that values be cached (ie,
remain consistent within an evaluation), but does allow it. Any caching,
as well as details of which time to use (time at the PEP, PDP, etc.) is
taken care of by the EvaluationCtx
which is used to supply
the current values.
Field Summary | |
---|---|
static String |
ENVIRONMENT_CURRENT_DATE
Standard environment variable that represents the current date |
static String |
ENVIRONMENT_CURRENT_DATETIME
Standard environment variable that represents the current date and time |
static String |
ENVIRONMENT_CURRENT_TIME
Standard environment variable that represents the current time |
Constructor Summary | |
---|---|
CurrentEnvModule()
|
Method Summary | |
---|---|
EvaluationResult |
findAttribute(URI attributeType,
URI attributeId,
URI issuer,
URI subjectCategory,
EvaluationCtx context,
int designatorType)
Used to get the current time, date, or dateTime. |
Set |
getSupportedDesignatorTypes()
Returns a Set with a single Integer
specifying that environment attributes are supported by this
module. |
boolean |
isDesignatorSupported()
Returns true always because this module supports designators. |
Methods inherited from class org.jboss.security.xacml.sunxacml.finder.AttributeFinderModule |
---|
findAttribute, getIdentifier, getSupportedIds, invalidateCache, isSelectorSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENVIRONMENT_CURRENT_TIME
public static final String ENVIRONMENT_CURRENT_DATE
public static final String ENVIRONMENT_CURRENT_DATETIME
Constructor Detail |
---|
public CurrentEnvModule()
Method Detail |
---|
public boolean isDesignatorSupported()
isDesignatorSupported
in class AttributeFinderModule
public Set getSupportedDesignatorTypes()
Set
with a single Integer
specifying that environment attributes are supported by this
module.
getSupportedDesignatorTypes
in class AttributeFinderModule
Set
with
AttributeDesignator.ENVIRONMENT_TARGET
includedpublic EvaluationResult findAttribute(URI attributeType, URI attributeId, URI issuer, URI subjectCategory, EvaluationCtx context, int designatorType)
findAttribute
in class AttributeFinderModule
attributeType
- the datatype of the attributes to find, which
must be time, date, or dateTime for this module
to resolve a valueattributeId
- the identifier of the attributes to find, which
must be one of the three ENVIRONMENT_* fields for
this module to resolve a valueissuer
- the issuer of the attributes, or null if unspecifiedsubjectCategory
- the category of the attribute or null, which
ignored since this only handles non-subjectscontext
- the representation of the request datadesignatorType
- the type of designator, which must be
ENVIRONMENT_TARGET for this module to resolve
a value
|
JBoss port of sunxacml 2.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |