public class OpenSSOPrivilege extends 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 and Description |
---|
OpenSSOPrivilege() |
Modifier and Type | Method and 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.
|
String |
getPolicyName()
Returns policy name.
|
PrivilegeType |
getType()
Returns privilege Type.
|
protected void |
init(org.json.JSONObject jo) |
void |
setPolicyName(String policyName)
Sets policy name.
|
org.json.JSONObject |
toJSONObject()
Returns JSONObject mapping of the object
|
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
public PrivilegeType getType()
Privilege
getType
in class Privilege
PrivilegeType
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
Privilege
evaluate
in interface IPrivilege
evaluate
in class Privilege
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
- true
to perform evaluation on sub resources
from the given resource name.context
- A security contextEntitlementException
- if the result cannot be determined.public org.json.JSONObject toJSONObject() throws org.json.JSONException
toJSONObject
in class Privilege
org.json.JSONException
- if can not map to JSONObjectpublic void setPolicyName(String policyName)
policyName
- Policy name.public String getPolicyName()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.