public interface EntitlementSubject
Modifier and Type | Method and Description |
---|---|
SubjectDecision |
evaluate(String realm,
SubjectAttributesManager mgr,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Returns
SubjectDecision of EntitlementSubject evaluation. |
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.
|
boolean |
isIdentity()
Returns
true is this subject is an identity object. |
void |
setState(String state)
Sets state of this object from a JSON string.
|
void setState(String state)
state
- State of the object encoded as a JSON stringString getState()
Map<String,Set<String>> getSearchIndexAttributes()
EntitlementSubject
.Set<String> getRequiredAttributeNames()
Evaluator
would try to populate these attributes in the Subject for the
EntitlementSubject
's consumption.EntitlementSubject
's implementation.SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
SubjectDecision
of EntitlementSubject
evaluation.realm
- Realm name.subject
- Subject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.SubjectDecision
of Subject
evaluation.EntitlementException
- if any errors occur.boolean isIdentity()
true
is this subject is an identity object.true
is this subject is an identity object.Copyright © 2010-2018, ForgeRock All Rights Reserved.