Class OpenSSOPrivilege
- java.lang.Object
-
- com.sun.identity.entitlement.Privilege
-
- com.sun.identity.entitlement.opensso.OpenSSOPrivilege
-
- All Implemented Interfaces:
IPrivilege
- Direct Known Subclasses:
XACMLOpenSSOPrivilege
public class OpenSSOPrivilege extends Privilege
-
-
Field Summary
-
Fields inherited from class com.sun.identity.entitlement.Privilege
APPLICATION_ATTRIBUTE, APPLICATION_SEARCH_ATTRIBUTE, CREATED_BY_ATTRIBUTE, CREATED_BY_SEARCH_ATTRIBUTE, CREATION_DATE_ATTRIBUTE, CREATION_DATE_SEARCH_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, DESCRIPTION_SEARCH_ATTRIBUTE, LAST_MODIFIED_BY_ATTRIBUTE, LAST_MODIFIED_BY_SEARCH_ATTRIBUTE, LAST_MODIFIED_DATE_ATTRIBUTE, LAST_MODIFIED_DATE_SEARCH_ATTRIBUTE, NAME_ATTRIBUTE, NAME_SEARCH_ATTRIBUTE, NOT_SUBJECT, PRIVILEGE_CLASS_PROPERTY, RESOURCE_MACRO_ATTRIBUTE, RESOURCE_MACRO_SELF, RESOURCE_TYPE_UUID_ATTRIBUTE, RESOURCE_TYPE_UUID_SEARCH_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description OpenSSOPrivilege()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Entitlement>evaluate(Subject adminSubject, String realm, Subject subject, String applicationName, String normalisedResourceName, String requestedResourceName, Set<String> actionNames, Map<String,Set<String>> environment, boolean recursive, Object context)Returns a list of entitlement for a given subject, resource name and environment.StringgetPolicyName()Returns policy name.PrivilegeTypegetType()Returns privilege Type.protected voidinit(org.json.JSONObject jo)voidsetPolicyName(String policyName)Sets policy name.org.json.JSONObjecttoJSONObject()Returns JSONObject mapping of the object-
Methods inherited from class com.sun.identity.entitlement.Privilege
canonicalizeResources, doesConditionMatch, doesSubjectMatch, equals, getApplicationIndexes, getAttributes, getCondition, getCreatedBy, getCreationDate, getDescription, getEntitlement, getInstance, getLastModifiedBy, getLastModifiedDate, getName, getNewInstance, getNewInstance, getNewInstance, getResourceAttributes, getResourceSaveIndexes, getResourceTypeUuid, getSubject, hashCode, isActive, setActive, setApplicationIndexes, setCondition, setCreatedBy, setCreationDate, setDescription, setEntitlement, setLastModifiedBy, setLastModifiedDate, setName, setResourceAttributes, setResourceTypeUuid, setSubject, toMinimalJSONObject, toString
-
-
-
-
Method Detail
-
getType
public PrivilegeType getType()
Description copied from class:PrivilegeReturns privilege Type.- Overrides:
getTypein classPrivilege- Returns:
- privilege Type.
- See Also:
PrivilegeType
-
evaluate
public List<Entitlement> evaluate(Subject adminSubject, String realm, Subject subject, String applicationName, String normalisedResourceName, String requestedResourceName, Set<String> actionNames, Map<String,Set<String>> environment, boolean recursive, Object context) throws EntitlementException
Description copied from class:PrivilegeReturns a list of entitlement for a given subject, resource name and environment.- Specified by:
evaluatein interfaceIPrivilege- Specified by:
evaluatein classPrivilege- Parameters:
adminSubject- Admin Subjectrealm- Realm Namesubject- Subject who is under evaluation.applicationName- Application name.normalisedResourceName- The normalised resource name.requestedResourceName- The requested resource name.actionNames- Set of action names.environment- Environment parameters.recursive-trueto perform evaluation on sub resources from the given resource name.context- A security context- Returns:
- a list of entitlement for a given subject, resource name and environment.
- Throws:
EntitlementException- if the result cannot be determined.
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONExceptionReturns JSONObject mapping of the object- Overrides:
toJSONObjectin classPrivilege- Returns:
- JSONObject mapping of the object
- Throws:
org.json.JSONException- if can not map to JSONObject
-
setPolicyName
public void setPolicyName(String policyName)
Sets policy name.- Parameters:
policyName- Policy name.
-
getPolicyName
public String getPolicyName()
Returns policy name.- Returns:
- policyName Policy name.
-
-