Package com.sun.identity.entitlement
Class AnyUserSubject
- java.lang.Object
-
- com.sun.identity.entitlement.AnyUserSubject
-
- All Implemented Interfaces:
EntitlementSubject,SubjectImplementation
@Deprecated public class AnyUserSubject extends Object implements SubjectImplementation
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description AnyUserSubject()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SubjectDecisionevaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment)Deprecated.ReturnsSubjectDecisionofEntitlementSubjectevaluation.Set<String>getRequiredAttributeNames()Deprecated.Returns a set of attribute names that are used for evaluation.Map<String,Set<String>>getSearchIndexAttributes()Deprecated.Returns attribute names and values that could be used for indexing.StringgetState()Deprecated.Returns state of the object encoded as a JSON string.booleanisIdentity()Deprecated.Returnstrueis this subject is an identity object.voidsetState(String state)Deprecated.Sets state of this object from a JSON string.
-
-
-
Method Detail
-
evaluate
public SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
Deprecated.Description copied from interface:EntitlementSubjectReturnsSubjectDecisionofEntitlementSubjectevaluation.- Specified by:
evaluatein interfaceEntitlementSubject- Parameters:
realm- Realm name.subject- Subject who is under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
SubjectDecisionofSubjectevaluation.- Throws:
EntitlementException- if any errors occur.
-
getSearchIndexAttributes
public Map<String,Set<String>> getSearchIndexAttributes()
Deprecated.Description copied from interface:EntitlementSubjectReturns 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 .- Specified by:
getSearchIndexAttributesin interfaceEntitlementSubject- Returns:
- a map of key-value pairs that will be used for indexing the
entitlements that contain this
EntitlementSubject .
-
getRequiredAttributeNames
public Set<String> getRequiredAttributeNames()
Deprecated.Description copied from interface:EntitlementSubjectReturns 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.- Specified by:
getRequiredAttributeNamesin interfaceEntitlementSubject- Returns:
- a set of attributes that would be required by the
EntitlementSubject 's implementation.
-
isIdentity
public boolean isIdentity()
Deprecated.Description copied from interface:EntitlementSubjectReturnstrueis this subject is an identity object.- Specified by:
isIdentityin interfaceEntitlementSubject- Returns:
trueis this subject is an identity object.
-
setState
public void setState(String state)
Deprecated.Description copied from interface:EntitlementSubjectSets state of this object from a JSON string.- Specified by:
setStatein interfaceEntitlementSubject- Parameters:
state- State of the object encoded as a JSON string
-
getState
public String getState()
Deprecated.Description copied from interface:EntitlementSubjectReturns state of the object encoded as a JSON string.- Specified by:
getStatein interfaceEntitlementSubject- Returns:
- state of the object encoded as a JSON string.
-
-