instead
.@Deprecated public class ResourceEnvIPCondition extends Object implements Condition
ResourceEnvIPCondition
is a plugin
implementation of Condition
interface.
This condition object provides the policy framework with the
condition decision and advices based on the client's environment or
resource such as IP address, DNS host name, location, etc.
For the first drop, we are only supporting IP address.Modifier and Type | Field and Description |
---|---|
static String |
ENV_CONDITION_VALUE
Deprecated.
|
static String |
IP
Deprecated.
|
static String |
THEN
Deprecated.
|
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
Constructor and Description |
---|
ResourceEnvIPCondition()
Deprecated.
No argument constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Returns a copy of this object.
|
ConditionDecision |
getConditionDecision(SSOToken token,
Map env)
Deprecated.
Returns the decision computed by
ResourceEnvIPCondition
object. |
String |
getDisplayName(String property,
Locale locale)
Deprecated.
Returns the display name for the property name.
|
Map |
getProperties()
Deprecated.
Returns properties of
ResourceEnvIPCondition . |
List |
getPropertyNames()
Deprecated.
Returns a list of property names for
ResourceEnvIPCondition . |
Syntax |
getPropertySyntax(String property)
Deprecated.
Returns the syntax for a property name
|
Set |
getValidValues(String property)
Deprecated.
Returns a set of valid values given the property name.
|
void |
setProperties(Map properties)
Deprecated.
Sets the properties of
ResourceEnvIPCondition . |
public static final String ENV_CONDITION_VALUE
public static final String IP
public static final String THEN
public ResourceEnvIPCondition()
public List getPropertyNames()
ResourceEnvIPCondition
.getPropertyNames
in interface Condition
public Syntax getPropertySyntax(String property)
getPropertySyntax
in interface Condition
property
- String property nameSyntax for the property name
Syntax
public String getDisplayName(String property, Locale locale) throws PolicyException
locale
variable could be used by the
plugin to customize the display name for the given locale.
The locale
variable could be null
, in which
case the plugin must use the default locale.getDisplayName
in interface Condition
property
- String property namelocale
- Locale for which the property name must be customizedPolicyException
public Set getValidValues(String property) throws PolicyException
getValidValues
in interface Condition
property
- String property namePolicyException
- if unable to get the Syntax.public void setProperties(Map properties) throws PolicyException
ResourceEnvIPCondition
.
Evaluation of ConditionDecision is influenced by these properties.setProperties
in interface Condition
properties
- the properties of the condition that governs
whether a policy applies. The properties should
define value for the key ENV_CONDITION_VALUE. The value should
be a Set with multiple elements. Each element should be
a String. Please note that properties is not cloned by the method.PolicyException
- if properties is null or does not contain
value for the key ENV_CONDITION_VALUE or the value of the key is
not a Set with one String element that is parsable as
an integer.ConditionDecision
public Map getProperties()
ResourceEnvIPCondition
.getProperties
in interface Condition
Condition.setProperties(java.util.Map<java.lang.String, java.util.Set<java.lang.String>>)
public ConditionDecision getConditionDecision(SSOToken token, Map env) throws PolicyException, SSOException
ResourceEnvIPCondition
object.getConditionDecision
in interface Condition
token
- single sign on token of the userenv
- request specific environment map of key/value
pairs ResourceEnvIPCondition
looks for values of key
REQUEST_IP
in the
env
map. If REQUEST_IP
could not be
determined from env
, it is obtained from
single sign on token of the user.ConditionDecision
.
Otherwise, further evaluation of the policy is skipped.
However, the advice messages encapsulated in the
ConditionDecision
are aggregated and passed up, encapsulated
in the policy decision.PolicyException
- if the condition has not been initialized
with a successful call to setProperties(Map)
and/or
the value of key REQUEST_IP
is not a String.SSOException
- if the token is invalidsetProperties(Map)
,
Condition.REQUEST_IP
,
ConditionDecision
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.