public class UserAttributes extends Object implements ResourceAttribute
ResourceAttribute
Constructor and Description |
---|
UserAttributes()
Constructs an instance of UserAttributes
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns
true if the passed in object is equal to this object |
Map<String,Set<String>> |
evaluate(Subject adminSubject,
String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Returns resoruce attributes aplicable to the request
|
String |
getPResponseProviderName()
Returns OpenAM policy response provider name of the object
|
String |
getPropertyName()
Returns property name.
|
Set<String> |
getPropertyValues()
Returns property values.
|
String |
getState()
Returns the state of this object.
|
int |
hashCode()
Returns hash code of the object.
|
void |
setPResponseProviderName(String pResponseProviderName)
Sets OpenAM policy response provider name of the object
|
void |
setPropertyName(String propertyName)
Sets property name.
|
void |
setState(String s)
Sets the state of the object.
|
org.json.JSONObject |
toJSONObject()
Returns JSONObject mapping of the object.
|
String |
toString()
Returns string representation of the object.
|
public String getPropertyName()
ResourceAttribute
getPropertyName
in interface ResourceAttribute
public void setPropertyName(String propertyName)
ResourceAttribute
setPropertyName
in interface ResourceAttribute
propertyName
- property name.public Set<String> getPropertyValues()
ResourceAttribute
getPropertyValues
in interface ResourceAttribute
ResourceAttribute
.public Map<String,Set<String>> evaluate(Subject adminSubject, String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
evaluate
in interface ResourceAttribute
adminSubject
- Subject who is performing the evaluation.realm
- Realm name.subject
- Subject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.EntitlementException
- if can not get condition decisionpublic String getState()
getState
in interface ResourceAttribute
public void setState(String s)
setState
in interface ResourceAttribute
s
- state of the object.public org.json.JSONObject toJSONObject() throws org.json.JSONException
org.json.JSONException
public String toString()
public void setPResponseProviderName(String pResponseProviderName)
setPResponseProviderName
in interface ResourceAttribute
pResponseProviderName
- response provider name as used in OpenAM
policy, this is relevant only when UserAttributes was created from
OpenAM policy Subject.public String getPResponseProviderName()
getPResponseProviderName
in interface ResourceAttribute
public boolean equals(Object obj)
true
if the passed in object is equal to this objectCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.