@Deprecated public final class ReferralPrivilege extends Object implements IPrivilege, Cloneable
Constructor and Description |
---|
ReferralPrivilege()
Deprecated.
|
ReferralPrivilege(String name,
Map<String,Set<String>> map,
Set<String> realms)
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
canonicalizeResources(Subject adminSubject,
String realm)
Deprecated.
Canonicalizes resource name before persistence.
|
Object |
clone()
Deprecated.
|
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)
Deprecated.
Returns a list of entitlement for a given subject, resource name
and environment.
|
Set<String> |
getApplicationTypeNames(Subject adminSubject,
String realm)
Deprecated.
|
String |
getCreatedBy()
Deprecated.
Returns the user ID who created the policy.
|
long |
getCreationDate()
Deprecated.
Returns creation date.
|
String |
getDescription()
Deprecated.
Returns description.
|
static ReferralPrivilege |
getInstance(org.json.JSONObject jo)
Deprecated.
|
String |
getLastModifiedBy()
Deprecated.
Returns the user ID who last modified the policy.
|
long |
getLastModifiedDate()
Deprecated.
Returns last modified date.
|
Map<String,Set<String>> |
getMapApplNameToResources()
Deprecated.
Returns mapping of application name to resources.
|
String |
getName()
Deprecated.
Returns name.
|
Map<String,Set<String>> |
getOriginalMapApplNameToResources()
Deprecated.
Returns non canonicalized mapping of application name to resources.
|
Set<String> |
getRealms()
Deprecated.
Returns realms.
|
ResourceSaveIndexes |
getResourceSaveIndexes(Subject adminSubject,
String realm)
Deprecated.
Returns resource save indexes.
|
boolean |
isActive()
Deprecated.
Returns
true if this privilege is active. |
void |
setActive(boolean active)
Deprecated.
Sets this privilege active/inactive.
|
void |
setCreatedBy(String createdBy)
Deprecated.
Sets the user ID who created the policy.
|
void |
setCreationDate(long creationDate)
Deprecated.
Sets the creation date.
|
void |
setDescription(String description)
Deprecated.
Sets description.
|
void |
setLastModifiedBy(String lastModifiedBy)
Deprecated.
Sets the user ID who last modified the policy.
|
void |
setLastModifiedDate(long lastModifiedDate)
Deprecated.
Sets the last modified date.
|
void |
setMapApplNameToResources(Map<String,Set<String>> map)
Deprecated.
Sets the application name to resource name.
|
void |
setName(String name)
Deprecated.
Set this referral privilege's name.
|
void |
setRealms(Set<String> realms)
Deprecated.
Sets realms.
|
String |
toJSON()
Deprecated.
|
String |
toXML()
Deprecated.
|
public ReferralPrivilege()
public ReferralPrivilege(String name, Map<String,Set<String>> map, Set<String> realms) throws EntitlementException
name
- Namemap
- Map of application name to resources.realms
- Realm namesEntitlementException
- if map or realms are empty.public static ReferralPrivilege getInstance(org.json.JSONObject jo)
public void setMapApplNameToResources(Map<String,Set<String>> map) throws EntitlementException
map
- map of application name to tesource names.EntitlementException
- if map is empty.public void setName(String name)
public void setRealms(Set<String> realms) throws EntitlementException
realms
- Realms.EntitlementException
- if realms is empty.public Map<String,Set<String>> getMapApplNameToResources()
public Map<String,Set<String>> getOriginalMapApplNameToResources()
public String getName()
getName
in interface IPrivilege
public void setDescription(String description)
description
- public String getDescription()
public ResourceSaveIndexes getResourceSaveIndexes(Subject adminSubject, String realm) throws EntitlementException
getResourceSaveIndexes
in interface IPrivilege
adminSubject
- Admin Subject.realm
- Realm NameEntitlementException
public long getCreationDate()
public void setCreationDate(long creationDate)
creationDate
- creation date.public long getLastModifiedDate()
getLastModifiedDate
in interface IPrivilege
public void setLastModifiedDate(long lastModifiedDate)
lastModifiedDate
- last modified date.public String getLastModifiedBy()
public void setLastModifiedBy(String lastModifiedBy)
lastModifiedBy
- user ID who last modified the policy.public String getCreatedBy()
public void setCreatedBy(String createdBy)
createdBy
- user ID who created the policy.public String toXML()
public String toJSON()
public void canonicalizeResources(Subject adminSubject, String realm) throws EntitlementException
adminSubject
- Admin Subject.realm
- Realm NameEntitlementException
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
IPrivilege
evaluate
in interface IPrivilege
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 Set<String> getApplicationTypeNames(Subject adminSubject, String realm) throws EntitlementException
EntitlementException
public boolean isActive()
true
if this privilege is active.true
if this privilege is active.public void setActive(boolean active)
active
- true
if this privilege is to be active.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.