Modifier and Type | Field and Description |
---|---|
static Map |
userLDAPRoleCache |
Constructor and Description |
---|
LDAPRoles()
Constructor with no parameter
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
String |
getDisplayNameForValue(String value,
Locale locale)
Returns the display name for the value for the given locale.
|
ValidValues |
getValidValues(SSOToken token)
Returns a list of possible values for the
LDAPRoles
. |
ValidValues |
getValidValues(SSOToken token,
String pattern)
Returns a list of possible values for the
LDAPRoles
that satisfy the given pattern . |
Set |
getValues()
Returns the values that was set using the
method
setValues . |
Syntax |
getValueSyntax(SSOToken token)
Returns the syntax of the values the
LDAPRoles |
int |
hashCode()
Return a hash code for this
LDAPRoles . |
void |
initialize(Map configParams)
Initialize the LDAPGroup object by using the configuration
information passed by the Policy Framework.
|
boolean |
isMember(SSOToken token)
Determines if the user identified by the token,
belongs to this instance of the
LDAPRoles object. |
void |
setValues(Set names)
Sets the names for the instance of the
LDAPRoles
object. |
public static Map userLDAPRoleCache
public void initialize(Map configParams) throws PolicyException
initialize
in interface Subject
configParams
- the configuration informationPolicyException
- if an error occured during
initialization of the instancepublic Syntax getValueSyntax(SSOToken token) throws SSOException
LDAPRoles
getValueSyntax
in interface Subject
token
- the SSOToken
that will be used
to determine the syntaxSSOException
- if SSOToken>
is not validSyntax
public ValidValues getValidValues(SSOToken token) throws SSOException, PolicyException
LDAPRoles
.getValidValues
in interface Subject
token
- the SSOToken
that will be used
to determine the possible valuesValidValues
objectSSOException
- if SSOToken>
is not validPolicyException
- if unable to get the list of valid
names.public ValidValues getValidValues(SSOToken token, String pattern) throws SSOException, PolicyException
LDAPRoles
that satisfy the given pattern
.getValidValues
in interface Subject
token
- the SSOToken
that will be used
to determine the possible valuespattern
- search pattern that will be used to narrow
the list of valid names.ValidValues
objectSSOException
- if SSOToken>
is not validPolicyException
- if unable to get the list of valid
names.public String getDisplayNameForValue(String value, Locale locale) throws NameNotFoundException
getValidValues
this method must be called
by GUI and CLI to get the corresponding display name.
The 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 (most probabily
en_US).
Alternatively, if the plugin does not have to localize
the value, it can just return the value
as is.getDisplayNameForValue
in interface Subject
value
- one of the valid value for the pluginlocale
- locale for which the display name must be customizedNameNotFoundException
- if the given value
is not one of the valid values for the pluginpublic Set getValues()
setValues
.public void setValues(Set names) throws InvalidNameException
LDAPRoles
object. The names are obtained from the policy object,
usually configured when a policy is created.setValues
in interface Subject
names
- names selected for the instance of
the user collection object.InvalidNameException
- if the given names are not validpublic boolean isMember(SSOToken token) throws SSOException, PolicyException
LDAPRoles
object.isMember
in interface Subject
token
- single-sign-on token of the usertrue
if the user is member of the
given subject; false
otherwise.SSOException
- if SSOToken
is not validPolicyException
- if an error occured while
checking if the user is a member of this subjectpublic int hashCode()
LDAPRoles
.public boolean equals(Object o)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.