Constructor and Description |
---|
LDAPUsers()
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 |
getValidEntries(SSOToken token,
String pattern,
String[] attributeNames)
Returns a set of possible values that satisfy the
pattern . |
ValidValues |
getValidValues(SSOToken token)
Returns a list of possible values for the
LDAPUsers
. |
ValidValues |
getValidValues(SSOToken token,
String pattern)
Returns a list of possible values for the
LDAPUsers
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
LDAPUsers |
int |
hashCode()
Return a hash code for this
LDAPUsers . |
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
LDAPUsers object. |
protected org.forgerock.opendj.ldif.ConnectionEntryReader |
search(String searchFilter,
org.forgerock.opendj.ldap.Connection ld,
String... attributeNames) |
void |
setValues(Set names)
Sets the names for the instance of the
LDAPUsers
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
LDAPUsers
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
LDAPUsers
.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
LDAPUsers
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 ValidValues getValidEntries(SSOToken token, String pattern, String[] attributeNames) throws SSOException, PolicyException
pattern
.
The returned ValidValues
object contains a set of
map of user DN to a map of user's attribute name to a string array of
attribute values.token
- Single Sign On token for fetching the possible values.pattern
- Search pattern of which possible values are matched to.attributeNames
- Array of attribute names to be to returned.pattern
.SSOException
- if SSOToken
is invalid.PolicyException
- if there are problems getting these values.protected org.forgerock.opendj.ldif.ConnectionEntryReader search(String searchFilter, org.forgerock.opendj.ldap.Connection ld, String... attributeNames)
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
LDAPUsers
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
LDAPUsers
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 SSO token is not validPolicyException
- if an error occured while
checking if the user is a member of this subjectpublic int hashCode()
LDAPUsers
.public boolean equals(Object o)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.