public interface EntitlementCondition
Privilege
applies to a given request.Modifier and Type | Method and Description |
---|---|
ConditionDecision |
evaluate(String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Returns condition decision.
|
String |
getDisplayType()
Returns display type.
|
String |
getState()
Returns state of the object encoded as a JSON string.
|
void |
init(Map<String,Set<String>> parameters)
Initializes the condition object.
|
void |
setDisplayType(String displayType)
Sets display type.
|
void |
setState(String state)
Sets state of this object from a JSON string.
|
void |
validate()
Checks that this condition is configured correctly.
|
void setDisplayType(String displayType)
displayType
- Display Type.String getDisplayType()
void init(Map<String,Set<String>> parameters)
parameters
- Parameters for initializing the condition.void setState(String state)
state
- State of the object encoded as a JSON stringString getState()
void validate() throws EntitlementException
EntitlementException
if not with an
informative message to display to the user creating/updating the policy.EntitlementException
- if the configuration state is not valid.ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
realm
- Realm Name.subject
- Subject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.EntitlementException
- if cannot get condition decision.Copyright © 2010-2018, ForgeRock All Rights Reserved.