public class AttributeSubject extends Object implements SubjectImplementation
Constructor and Description |
---|
AttributeSubject()
Constructor
|
AttributeSubject(String id,
String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
SubjectDecision |
evaluate(String realm,
SubjectAttributesManager mgr,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Returns
SubjectDecision of
EntitlementSubject evaluation |
String |
getID()
Returns the Identifier.
|
Set<String> |
getRequiredAttributeNames()
Returns required attribute names.
|
Map<String,Set<String>> |
getSearchIndexAttributes()
Returns search index attributes.
|
String |
getState()
Returns state of the object.
|
String |
getValue()
Returns attribute value.
|
int |
hashCode() |
boolean |
isExclusive()
Returns
true for exclusive. |
boolean |
isIdentity()
Returns
true is this subject is an identity object. |
void |
setExclusive(boolean flag)
Sets exclusive.
|
void |
setID(String id)
Sets the Identifier.
|
void |
setState(String state)
Sets state of the object
|
void |
setValue(String value)
Sets attribute value.
|
org.json.JSONObject |
toJSONObject()
Returns JSONObject mapping of the object.
|
String |
toString()
Returns string representation of the object.
|
public String getValue()
public void setValue(String value)
value
- attribute valuepublic void setID(String id)
id
- Identifier.public String getID()
public SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
SubjectDecision
of
EntitlementSubject
evaluationevaluate
in interface EntitlementSubject
realm
- Realm name.subject
- EntitlementSubject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.SubjectDecision
of
EntitlementSubject
evaluationcom.sun.identity.entitlement,
- EntitlementException in case
of any errorEntitlementException
- if any errors occur.public void setState(String state)
setState
in interface EntitlementSubject
state
- State of the object encoded as stringpublic String getState()
getState
in interface EntitlementSubject
public org.json.JSONObject toJSONObject() throws org.json.JSONException
org.json.JSONException
public String toString()
public Map<String,Set<String>> getSearchIndexAttributes()
getSearchIndexAttributes
in interface EntitlementSubject
public Set<String> getRequiredAttributeNames()
getRequiredAttributeNames
in interface EntitlementSubject
public boolean isIdentity()
true
is this subject is an identity object.isIdentity
in interface EntitlementSubject
true
is this subject is an identity object.public boolean isExclusive()
true
for exclusive.true
for exclusive.public void setExclusive(boolean flag)
flag
- true
for exclusive.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.