Package com.sun.identity.entitlement
Class UserSubject
- java.lang.Object
-
- com.sun.identity.entitlement.EntitlementSubjectImpl
-
- com.sun.identity.entitlement.UserSubject
-
- All Implemented Interfaces:
EntitlementSubject,SubjectImplementation
- Direct Known Subclasses:
OpenSSOUserSubject
@Deprecated public class UserSubject extends EntitlementSubjectImpl
Deprecated.As of ForgeRock OpenAM 12.EntitlementSubject to represent user identity for membership check
-
-
Constructor Summary
Constructors Constructor Description UserSubject()Deprecated.Constructs an UserSubjectUserSubject(String user)Deprecated.Constructs UserSubjectUserSubject(String user, String pSubjectName)Deprecated.Constructs UserSubject
-
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.ReturnsSubjectDecisionofEntitlementSubjectevaluationSet<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.booleanisIdentity()Deprecated.Returnstrueis this subject is an identity object.-
Methods inherited from class com.sun.identity.entitlement.EntitlementSubjectImpl
equals, getID, getPSubjectName, getState, hashCode, hasPrincipal, isExclusive, setExclusive, setID, setPSubjectName, setState, toJSONObject, toString
-
-
-
-
Constructor Detail
-
UserSubject
public UserSubject()
Deprecated.Constructs an UserSubject
-
UserSubject
public UserSubject(String user)
Deprecated.Constructs UserSubject- Parameters:
user- the uuid of the user who is member of the EntitlementSubject
-
UserSubject
public UserSubject(String user, String pSubjectName)
Deprecated.Constructs UserSubject- Parameters:
user- the uuid of the user who is member of the EntitlementSubjectpSubjectName- subject name as used in OpenAM policy, this is relevant only when UserSubject was created from OpenAM policy Subject
-
-
Method Detail
-
evaluate
public SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
Deprecated.ReturnsSubjectDecisionofEntitlementSubjectevaluation- Parameters:
realm- Realm name.subject- EntitlementSubject who is under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
SubjectDecisionofEntitlementSubjectevaluation- 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 .- 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.- Returns:
- a set of attributes that would be required by the
EntitlementSubject 's implementation.
-
isIdentity
public boolean isIdentity()
Deprecated.Returnstrueis this subject is an identity object.- Returns:
trueis this subject is an identity object.
-
-