|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openliberty.openaz.pep.AzWrapperObject<T>
org.openliberty.openaz.pep.AzWrapperRequestObject<T>
T
- public class AzWrapperRequestObject<T extends java.lang.Enum<T>>
A wrapper around AzEntity
that simplifies the setting of some common XACML sttributes
using Java Objects. The simplifying assumption is that there are reasonable defaults between
Java Objects and XACML Attribute Types
Java Class | XACML Type (AzAttributeValue) |
java.lang.String | AzAttributeValueString |
java.lang.Boolean | AzAttributeValueBoolean |
java.util.Date | AzAttributeValueDate |
Field Summary |
---|
Fields inherited from class org.openliberty.openaz.pep.AzWrapperObject |
---|
wrappedObject |
Constructor Summary | |
---|---|
AzWrapperRequestObject(
Creates an instance of the AzWrapperRequestObject |
Method Summary | |
---|---|
PepRequest |
getPepRequest()
Return the PepRequest object that contains this wrapped AzEntity object. |
void |
setAttribute(java.lang.String name,
java.util.Date date)
Adds the name, date parameter pair as an AttributeId and Date AttributeValue to the wrapped AzEntity object. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Adds the name, value parameter pair as an AttributeId and String AttributeValue to the wrapped AzEntity object. |
void |
setPepRequest(PepRequest wrappedCtx)
Set the PepRequest that contains this AzWrapperRequestObject, which wraps an AzEntity. |
Methods inherited from class org.openliberty.openaz.pep.AzWrapperObject |
---|
getWrappedObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AzWrapperRequestObject(wrappedObject, PepRequest ctx, AzWrapperRequestObjectFactory<T> factory)
AzWrapperRequestObject
wrappedObject
- ctx
- factory
- the factory used to create the object. This is used by the map
method
to get all of the registered JavaObjectMapper
for that category, and populate
the attributes of the underlying AzEntity
Method Detail |
---|
public void setPepRequest(PepRequest wrappedCtx)
wrappedCtx
- public PepRequest getPepRequest()
public void setAttribute(java.lang.String name, java.util.Date date)
name
- a string with a name to be used as AttributeIdvalue
- a Date to be used as an AttributeValuepublic void setAttribute(java.lang.String name, java.lang.String value)
name
- value
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |