Constructor and Description |
---|
LDAPGroups()
no argument constructor.
|
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
LDAPGroups
. |
ValidValues |
getValidValues(SSOToken token,
String pattern)
Returns a list of possible values for the
LDAPGroups
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
LDAPGroups |
int |
hashCode()
Return a hash code for this
LDAPGroups . |
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 belongs to this instance
of the
LDAPGroups object. |
void |
setValues(Set names)
Sets the names for the instance of the
LDAPGroups
object. |
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
LDAPGroups
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
LDAPGroups
.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
LDAPGroups
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
LDAPGroups
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
LDAPGroups
object.isMember
in interface Subject
token
- single-sign-on token of the usertrue
if the user is memeber of the
given subject; false
otherwise.SSOException
- if SSOToken>/code> is not valid
PolicyException
- if an error occured while
checking if the user is a member of this subjectpublic int hashCode()
LDAPGroups
.public boolean equals(Object o)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.