Package com.sun.identity.policy.plugins
Class AuthenticatedSharedAgentsCondition
- java.lang.Object
-
- com.sun.identity.policy.plugins.AuthenticatedSharedAgentsCondition
-
- All Implemented Interfaces:
Condition,ServiceListener,Cloneable
public class AuthenticatedSharedAgentsCondition extends Object implements Condition, ServiceListener
The classAuthenticatedSharedAgentsConditionchecks if the authenticated shared agent has the agent name it is trying to read.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.policy.interfaces.Condition
AM_IDENTITY_NAME, APPLICATION_IDLE_TIMEOUT, APPLICATION_NAME, AUTH_LEVEL, AUTH_LEVEL_CONDITION_ADVICE, AUTH_SCHEME, AUTH_SCHEME_CONDITION_ADVICE, AUTHENTICATE_TO_REALM, AUTHENTICATE_TO_REALM_CONDITION_ADVICE, AUTHENTICATE_TO_SERVICE, AUTHENTICATE_TO_SERVICE_CONDITION_ADVICE, DNS_NAME, END_DATE, END_DAY, END_IP, END_TIME, ENFORCEMENT_TIME_ZONE, INVOCATOR_PRINCIPAL_UUID, LDAP_FILTER, MAX_SESSION_TIME, REQUEST_AUTH_LEVEL, REQUEST_AUTH_SCHEMES, REQUEST_AUTHENTICATED_TO_REALMS, REQUEST_AUTHENTICATED_TO_SERVICES, REQUEST_DNS_NAME, REQUEST_IP, REQUEST_TIME_ZONE, START_DATE, START_DAY, START_IP, START_TIME, TERMINATE_SESSION, VALUE_CASE_INSENSITIVE
-
Fields inherited from interface com.sun.identity.sm.ServiceListener
ADDED, MODIFIED, REMOVED
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedSharedAgentsCondition()No argument constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a copy of this object.ConditionDecisiongetConditionDecision(SSOToken token, Map env)Gets the decision computed by this condition object.StringgetDisplayName(String property, Locale locale)Gets the display name for the property name.MapgetProperties()Gets the properties of the condition.ListgetPropertyNames()Returns a set of property names for the condition.SyntaxgetPropertySyntax(String property)Returns the syntax for a property nameSetgetValidValues(String property)Returns a set of valid values given the property name.voidglobalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)This method will be invoked when a service's global configuration data has been changed.voidorganizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int type)This method will be invoked when a service's organization configuration data has been changed.voidschemaChanged(String serviceName, String version)This method will be invoked when a service's schema has been changed.voidsetProperties(Map properties)Sets the properties of the condition.String[]split(String res)
-
-
-
Method Detail
-
getPropertyNames
public List getPropertyNames()
Returns a set of property names for the condition.- Specified by:
getPropertyNamesin interfaceCondition- Returns:
- set of property names
-
getPropertySyntax
public Syntax getPropertySyntax(String property)
Returns the syntax for a property name- Specified by:
getPropertySyntaxin interfaceCondition- Parameters:
property-Stringrepresenting property name- Returns:
Syntaxfor the property name- See Also:
Syntax
-
getDisplayName
public String getDisplayName(String property, Locale locale) throws PolicyException
Gets the display name for the property name. Thelocalevariable could be used by the plugin to customize the display name for the given locale. Thelocalevariable could benull, in which case the plugin must use the default locale.- Specified by:
getDisplayNamein interfaceCondition- Parameters:
property- property name.locale- locale for which the property name must be customized.- Returns:
- display name for the property name.
- Throws:
PolicyException- if unable to get display name
-
getValidValues
public Set getValidValues(String property) throws PolicyException
Returns a set of valid values given the property name. This method is called if the property Syntax is either the SINGLE_CHOICE or MULTIPLE_CHOICE.- Specified by:
getValidValuesin interfaceCondition- Parameters:
property-Stringrepresenting property name- Returns:
- Set of valid values for the property.
- Throws:
PolicyException- if unable to get the Syntax.
-
setProperties
public void setProperties(Map properties) throws PolicyException
Sets the properties of the condition. Evaluation of ConditionDecision is influenced by these properties.- Specified by:
setPropertiesin interfaceCondition- Parameters:
properties- of the condition that governs whether a policy applies. The only defined property isattributes- Throws:
PolicyException- for any abnormal condition- See Also:
ConditionDecision
-
getProperties
public Map getProperties()
Gets the properties of the condition.- Specified by:
getPropertiesin interfaceCondition- Returns:
- map view of properties that govern the evaluation of the condition decision
- See Also:
setProperties(Map)
-
getConditionDecision
public ConditionDecision getConditionDecision(SSOToken token, Map env) throws PolicyException, SSOException
Gets the decision computed by this condition object.- Specified by:
getConditionDecisionin interfaceCondition- Parameters:
token- single sign on token of the userenv- request specific environment map of key/value pairs.- Returns:
- the condition decision. The condition decision encapsulates whether a policy applies for the request. Policy framework continues evaluating a policy only if it applies to the request as indicated by the CondtionDecision. Otherwise, further evaluation of the policy is skipped.
- Throws:
SSOException- if the token is invalidPolicyException- if the decision could not be computed- See Also:
ConditionDecision
-
clone
public Object clone()
Returns a copy of this object.
-
globalConfigChanged
public void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)
Description copied from interface:ServiceListenerThis method will be invoked when a service's global configuration data has been changed. The parametergroupNamedenote the name of the configuration grouping (e.g. default) andserviceComponentdenotes the service's sub-component that changed (e.g./NamedPolicy,/Templates).- Specified by:
globalConfigChangedin interfaceServiceListener- Parameters:
serviceName- name of the service.version- version of the service.groupName- name of the configuration grouping.serviceComponent- name of the service components that changed.type- change type, i.e., ADDED, REMOVED or MODIFIED.
-
organizationConfigChanged
public void organizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int type)
Description copied from interface:ServiceListenerThis method will be invoked when a service's organization configuration data has been changed. The parametersorgName,groupNameandserviceComponentdenotes the organization name, configuration grouping name and service's sub-component that are changed respectively.- Specified by:
organizationConfigChangedin interfaceServiceListener- Parameters:
serviceName- name of the serviceversion- version of the serviceorgName- organization name as DNgroupName- name of the configuration groupingserviceComponent- the name of the service components that changedtype- change type, i.e., ADDED, REMOVED or MODIFIED
-
schemaChanged
public void schemaChanged(String serviceName, String version)
Description copied from interface:ServiceListenerThis method will be invoked when a service's schema has been changed.- Specified by:
schemaChangedin interfaceServiceListener- Parameters:
serviceName- name of the serviceversion- version of the service
-
-