public class PolicyResponseProvider extends Object implements ResourceAttribute
Constructor and Description |
---|
PolicyResponseProvider()
Default constructor
|
PolicyResponseProvider(String pResponseProviderName,
String className,
String propertyName,
Set<String> propertyValues)
Used by the entitlement framework to create an instance of this class
|
Modifier and Type | Method and Description |
---|---|
Map<String,Set<String>> |
evaluate(Subject adminSubject,
String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Called by the entitlements framework to fetch its resource attributes;
cascades the call through to the configured response provider implementation
|
String |
getClassName()
Returns the name of the underlying response provider implementation
|
String |
getPResponseProviderName()
Return the response provider name
|
String |
getPropertyName()
Get the name of the property associated with this wrapper.
|
Set<String> |
getPropertyValues()
Get the name of the property values for this wrapper
|
ResponseProvider |
getResponseProvider()
Constructs a legacy response provider based on the information in this adapter.
|
String |
getState()
Returns the state of the wrapper in a JSON representation
|
void |
setPResponseProviderName(String pResponseProviderName)
Sets the name of the response provider within the policy
|
void |
setPropertyName(String name)
Set the name of the property associated with this wrapper
|
void |
setPropertyValues(Set<String> propertyValues)
Sets the property values associated with this wrapper
|
void |
setState(String state)
Given a JSON state representation, updates the class appropriately
|
String |
toString() |
public PolicyResponseProvider()
public PolicyResponseProvider(String pResponseProviderName, String className, String propertyName, Set<String> propertyValues)
pResponseProviderName
- The name of the instance of the rpclassName
- The underlying (custom) policypropertyName
- The name of the property for this wrapperpropertyValues
- The set of values for this wrapperpublic String getClassName()
public void setPropertyName(String name)
setPropertyName
in interface ResourceAttribute
name
- The property namepublic String getPropertyName()
getPropertyName
in interface ResourceAttribute
public Set<String> getPropertyValues()
getPropertyValues
in interface ResourceAttribute
public void setPropertyValues(Set<String> propertyValues)
propertyValues
- The property valuespublic Map<String,Set<String>> evaluate(Subject adminSubject, String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
evaluate
in interface ResourceAttribute
adminSubject
- The admin user executing the policy evalrealm
- The realm of the policy evalsubject
- The user who is subject to the policy evalresourceName
- The resource name of the policy evalenvironment
- environment map from the policy eval clientEntitlementException
public ResponseProvider getResponseProvider() throws EntitlementException
EntitlementException
- if an error occurs constructing the response provider.public void setPResponseProviderName(String pResponseProviderName)
setPResponseProviderName
in interface ResourceAttribute
pResponseProviderName
- The provider namepublic String getPResponseProviderName()
getPResponseProviderName
in interface ResourceAttribute
public String getState()
getState
in interface ResourceAttribute
public void setState(String state)
setState
in interface ResourceAttribute
state
- Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.