Package com.sun.identity.entitlement
Interface EntitlementSubject
-
- All Known Subinterfaces:
SubjectImplementation
- All Known Implementing Classes:
AndSubject,AnyUserSubject,AttributeSubject,AuthenticatedUsers,EntitlementSubjectImpl,GroupSubject,IdentitySubject,JwtClaimSubject,LogicalSubject,NoSubject,NotSubject,OpenSSOGroupSubject,OpenSSOUserSubject,OrSubject,PolicySubject,UserSubject
public interface EntitlementSubject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubjectDecisionevaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment)ReturnsSubjectDecisionofEntitlementSubjectevaluation.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.StringgetState()Returns state of the object encoded as a JSON string.booleanisIdentity()Returnstrueis this subject is an identity object.voidsetState(String state)Sets state of this object from a JSON string.
-
-
-
Method Detail
-
setState
void setState(String state)
Sets state of this object from a JSON string.- Parameters:
state- State of the object encoded as a JSON string
-
getState
String getState()
Returns state of the object encoded as a JSON string.- Returns:
- state of the object encoded as a JSON string.
-
getSearchIndexAttributes
Map<String,Set<String>> getSearchIndexAttributes()
Returns attribute names and values that could be used for indexing. These values will be used by the authorization engine to obtain the applicable policies for a givenSubject .- Returns:
- a map of key-value pairs that will be used for indexing the
entitlements that contain this
EntitlementSubject .
-
getRequiredAttributeNames
Set<String> getRequiredAttributeNames()
Returns a set of attribute names that are used for evaluation. During evaluation, theEvaluator would try to populate these attributes in theSubject for theEntitlementSubject 's consumption.- Returns:
- a set of attributes that would be required by the
EntitlementSubject 's implementation.
-
evaluate
SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
ReturnsSubjectDecisionofEntitlementSubjectevaluation.- Parameters:
realm- Realm name.subject- Subject who is under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
SubjectDecisionofSubjectevaluation.- Throws:
EntitlementException- if any errors occur.
-
isIdentity
boolean isIdentity()
Returnstrueis this subject is an identity object.- Returns:
trueis this subject is an identity object.
-
-