Package com.sun.identity.entitlement
Class StaticAttributes
- java.lang.Object
-
- com.sun.identity.entitlement.StaticAttributes
-
- All Implemented Interfaces:
ResourceAttribute
public class StaticAttributes extends Object implements ResourceAttribute
Interface specification for entitlementResourceAttribute
-
-
Constructor Summary
Constructors Constructor Description StaticAttributes()Constructs an instance of StaticAttributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Returnstrueif the passed in object is equal to this objectMap<String,Set<String>>evaluate(Subject adminSubject, String realm, Subject subject, String resourceName, Map<String,Set<String>> environment)Returns resoruce attributes aplicable to the requestStringgetPResponseProviderName()Returns OpenAM policy response provider name of the objectStringgetPropertyName()Returns property name.Set<String>getPropertyValues()Returns property values.StringgetState()Returns the state of this object.inthashCode()Returns hash code of the objectvoidsetPResponseProviderName(String pResponseProviderName)Sets OpenAM policy response provider name of the objectvoidsetPropertyName(String propertyName)Sets property name.voidsetPropertyValues(Set<String> propertyValues)voidsetState(String s)Sets the state of the object.StringtoString()Returns string representation of the object
-
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
Description copied from interface:ResourceAttributeReturns property name.- Specified by:
getPropertyNamein interfaceResourceAttribute- Returns:
- name property name.
-
setPropertyName
public void setPropertyName(String propertyName)
Description copied from interface:ResourceAttributeSets property name.- Specified by:
setPropertyNamein interfaceResourceAttribute- Parameters:
propertyName- property name.
-
getPropertyValues
public Set<String> getPropertyValues()
Description copied from interface:ResourceAttributeReturns property values.- Specified by:
getPropertyValuesin interfaceResourceAttribute- Returns:
- properties for this
ResourceAttribute.
-
evaluate
public Map<String,Set<String>> evaluate(Subject adminSubject, String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
Returns resoruce attributes aplicable to the request- Specified by:
evaluatein interfaceResourceAttribute- Parameters:
adminSubject- Subject who is performing the evaluation.realm- Realm name.subject- Subject who is under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
- applicable resource attributes
- Throws:
EntitlementException- if can not get condition decision
-
getState
public String getState()
Returns the state of this object.- Specified by:
getStatein interfaceResourceAttribute- Returns:
- state of this object.
-
setState
public void setState(String s)
Sets the state of the object.- Specified by:
setStatein interfaceResourceAttribute- Parameters:
s- state of the object.
-
toString
public String toString()
Returns string representation of the object
-
setPResponseProviderName
public void setPResponseProviderName(String pResponseProviderName)
Sets OpenAM policy response provider name of the object- Specified by:
setPResponseProviderNamein interfaceResourceAttribute- Parameters:
pResponseProviderName- response provider name as used in OpenAM policy, this is relevant only when StaticAttributes was created from OpenAM policy Subject
-
getPResponseProviderName
public String getPResponseProviderName()
Returns OpenAM policy response provider name of the object- Specified by:
getPResponseProviderNamein interfaceResourceAttribute- Returns:
- response provider name as used in OpenAM policy, this is relevant only when StaticAttributes was created from OpenAM policy Subject
-
equals
public boolean equals(Object obj)
Returnstrueif the passed in object is equal to this object
-
-