public class JwtClaimSubject extends Object implements EntitlementSubject
Constructor and Description |
---|
JwtClaimSubject() |
Modifier and Type | Method and Description |
---|---|
boolean |
claimMatches(org.forgerock.json.JsonValue claim,
String claimValue) |
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 |
getClaimName() |
String |
getClaimValue() |
Set<String> |
getRequiredAttributeNames()
Returns a set of attribute names that are used for evaluation.
|
Map<String,Set<String>> |
getSearchIndexAttributes()
Returns attribute names and values that could be used for indexing.
|
String |
getState()
Returns state of the object encoded as a JSON string.
|
int |
hashCode() |
boolean |
isIdentity()
Returns
true is this subject is an identity object. |
void |
setClaimName(String claim) |
void |
setClaimValue(String value) |
void |
setState(String state)
Sets state of this object from a JSON string.
|
String |
toString() |
public void setState(String state)
EntitlementSubject
setState
in interface EntitlementSubject
state
- State of the object encoded as a JSON stringpublic String getState()
EntitlementSubject
getState
in interface EntitlementSubject
public Map<String,Set<String>> getSearchIndexAttributes()
EntitlementSubject
getSearchIndexAttributes
in interface EntitlementSubject
public Set<String> getRequiredAttributeNames()
EntitlementSubject
getRequiredAttributeNames
in interface EntitlementSubject
public SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
EntitlementSubject
SubjectDecision
of EntitlementSubject
evaluation.evaluate
in interface EntitlementSubject
realm
- Realm name.subject
- Subject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.SubjectDecision
of Subject
evaluation.EntitlementException
- if any errors occur.public boolean claimMatches(org.forgerock.json.JsonValue claim, String claimValue)
public boolean isIdentity()
EntitlementSubject
true
is this subject is an identity object.isIdentity
in interface EntitlementSubject
true
is this subject is an identity object.public void setClaimName(String claim)
public String getClaimName()
public void setClaimValue(String value)
public String getClaimValue()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.