public class AMIdentityMembershipCondition extends EntitlementConditionAdaptor
EntitlementCondition
that will check whether the
principal has the specified memberships.Constructor and Description |
---|
AMIdentityMembershipCondition()
Constructs a new AMIdentityMembershipCondition instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns
true if the passed in object is equal to this object |
ConditionDecision |
evaluate(String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> env)
Returns condition decision.
|
Set<String> |
getAmIdentityName() |
String |
getState()
Returns state of the object encoded as a JSON string.
|
int |
hashCode()
Returns hash code of the object.
|
void |
setAmIdentityNames(Set<String> nameValues) |
void |
setState(String state)
Sets state of this object from a JSON string.
|
String |
toString() |
void |
validate()
Checks that this condition is configured correctly.
|
getDisplayType, init, setDisplayType, setState, toJSONObject
public AMIdentityMembershipCondition()
public void setState(String state)
state
- State of the object encoded as a JSON stringpublic String getState()
public ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> env) throws EntitlementException
EntitlementCondition
realm
- Realm Name.subject
- Subject who is under evaluation.resourceName
- Resource name.env
- Environment parameters.EntitlementException
- if cannot get condition decision.public void validate() throws EntitlementException
EntitlementCondition
EntitlementException
if not with an
informative message to display to the user creating/updating the policy.EntitlementException
- if the configuration state is not valid.public boolean equals(Object obj)
EntitlementConditionAdaptor
true
if the passed in object is equal to this objectequals
in class EntitlementConditionAdaptor
obj
- object to check for equalitytrue
if the passed in object is equal to this objectpublic int hashCode()
EntitlementConditionAdaptor
hashCode
in class EntitlementConditionAdaptor
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.