Constructor and Description |
---|
DSAMERole() |
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
Subject . |
ValidValues |
getValidValues(SSOToken token,
String pattern)
Returns a list of possible values for the
Subject
that matches the pattern. |
Set |
getValues()
Returns the values that was set using the
method
setValues . |
Syntax |
getValueSyntax(SSOToken token)
Returns the syntax of the values this
Subject
implementation can have. |
int |
hashCode()
Return a hash code for this
DSAMERole . |
void |
initialize(Map configParams)
This method initializes the DSAME Role plugin with the organization
DN, search configuration, ldap server name, in which this plugin
is specified for a
Policy . |
boolean |
isMember(SSOToken token)
Determines if the user belongs to this instance of the
Subject object. |
void |
setValues(Set names)
Sets the names for the instance of the
Subject
object. |
public void initialize(Map configParams) throws PolicyException
Policy
.initialize
in interface Subject
configParams
- configuration parameters as a map.
The values in the map is java.util.Set
,
which contains one or more configuration paramaters.PolicyException
- if an error occured during
initialization of Subject
instancepublic Syntax getValueSyntax(SSOToken token) throws SSOException
Subject
implementation can have.getValueSyntax
in interface Subject
token
- the SSOToken
that will be used
to determine the syntaxSSOException
- if SSO token is not validPolicyException
- if unable to get the list of valid
names.Syntax
public ValidValues getValidValues(SSOToken token) throws SSOException, PolicyException
Subject
.getValidValues
in interface Subject
token
- the SSOToken
that will be used
to determine the possible valuesValidValues
objectSSOException
- if SSO token is not validPolicyException
- if unable to get the list of valid
names.public ValidValues getValidValues(SSOToken token, String pattern) throws SSOException, PolicyException
Subject
that matches the 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 SSO token 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
Subject
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
Subject
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()
DSAMERole
.public boolean equals(Object o)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.