public interface ResourceAttribute
Entitlement
when evaluating Privilege
s.
For example, these may be statically defined (StaticAttributes
)
or derived from the Subject
's account details (UserAttributes
).Modifier and Type | Method and Description |
---|---|
Map<String,Set<String>> |
evaluate(Subject adminSubject,
String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Returns resource attributes applicable to the request.
|
String |
getPResponseProviderName()
Deprecated.
|
String |
getPropertyName()
Returns property name.
|
Set<String> |
getPropertyValues()
Returns property values.
|
String |
getState()
Returns state of the object encoded as a JSON string.
|
void |
setPResponseProviderName(String pResponseProviderName)
Deprecated.
|
void |
setPropertyName(String name)
Sets property name.
|
void |
setState(String state)
Sets state of this object from a JSON string.
|
void setPropertyName(String name)
name
- property name.String getPropertyName()
Set<String> getPropertyValues()
ResourceAttribute
.Map<String,Set<String>> evaluate(Subject adminSubject, String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
adminSubject
- Subject who is performing the evaluation.realm
- Realm name.subject
- Subject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.EntitlementException
- if a condition decision cannot be reached.@Deprecated void setPResponseProviderName(String pResponseProviderName)
pResponseProviderName
- response provider name as used in OpenAM policy, this is relevant only
when StaticAttributes was created from OpenAM policy Subject@Deprecated String getPResponseProviderName()
String getState()
void setState(String state)
state
- State of the object encoded as a JSON stringCopyright © 2010-2018, ForgeRock All Rights Reserved.