public class PolicySubject extends Object implements EntitlementSubject
Constructor and Description |
---|
PolicySubject() |
PolicySubject(String name,
String className,
Set<String> values,
boolean exclusive)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SubjectDecision |
evaluate(String realm,
SubjectAttributesManager mgr,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Returns subject decision.
|
String |
getClassName()
Returns class name.
|
String |
getName()
Returns name.
|
Subject |
getPolicySubject()
Constructs a legacy policy subject based on the information in this adapter.
|
Set<String> |
getRequiredAttributeNames()
Returns required attribute names.
|
Map<String,Set<String>> |
getSearchIndexAttributes()
Returns search index attributes.
|
String |
getState()
Returns state of this subject.
|
Set<String> |
getValues()
Returns values.
|
boolean |
isExclusive()
Returns
true if this is an exclusive subject. |
boolean |
isIdentity()
Returns
true is this subject is an identity object. |
void |
setState(String state)
Sets states
|
public String getName()
public String getClassName()
public boolean isExclusive()
true
if this is an exclusive subject.true
if this is an exclusive subject.public void setState(String state)
setState
in interface EntitlementSubject
state
- State.public String getState()
getState
in interface EntitlementSubject
public Map<String,Set<String>> getSearchIndexAttributes()
getSearchIndexAttributes
in interface EntitlementSubject
public Set<String> getRequiredAttributeNames()
getRequiredAttributeNames
in interface EntitlementSubject
public SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
evaluate
in interface EntitlementSubject
realm
- Realm name.mgr
- Subject attribute managersubject
- Subject to be evaluated.resourceName
- Resource name to be evaluated.environment
- Environment map.EntitlementException
- if error
occurs.public boolean isIdentity()
true
is this subject is an identity object.isIdentity
in interface EntitlementSubject
true
is this subject is an identity object.public Subject getPolicySubject() throws EntitlementException
EntitlementException
- if an error occurs constructing the subject.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.