|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openliberty.openaz.pep.SimpleJavaPermissionMapper
public class SimpleJavaPermissionMapper
Default Java Permission implementation of JavObjectMapper
.
It supports the mapping of
a AzWrapperRequestObject
Constructor Summary | |
---|---|
SimpleJavaPermissionMapper()
|
Method Summary | ||
---|---|---|
boolean |
canMapObject(java.lang.Object obj)
Determines if the object requested to map is a Java Permission. |
|
java.util.Set<java.lang.Class> |
getSupportedClasses()
Returns the Set of Classes supported by this Mapper. |
|
|
map(java.lang.Object javaObject,
AzWrapperRequestObject<T> azWrapperRequestObject)
Maps a Java Permission object to a set of XACML attributes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleJavaPermissionMapper()
Method Detail |
---|
public java.util.Set<java.lang.Class> getSupportedClasses()
getSupportedClasses
in interface JavaObjectMapper
public boolean canMapObject(java.lang.Object obj)
canMapObject
in interface JavaObjectMapper
obj
- An Object
public <T extends java.lang.Enum<T>> AzWrapperRequestObject<T> map(java.lang.Object javaObject, AzWrapperRequestObject<T> azWrapperRequestObject) throws PepException
- The value of Permission.getName() maps to the value of the Resource Attribute with AttributeId: "urn:oasis:names:tc:xacml:1.0:resource:resource-id" - The value of Permission.getClass().getName() maps to the value of a Resource Attribute with AttributeId: "org.openliberty.openaz.pep.resource.resource-type" - The value of Permission.getActions() maps to the value of the Action Attribute with AttributeId: "urn:oasis:names:tc:xacml:1.0:action:implied-action"
map
in interface JavaObjectMapper
PepException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |