IdentitySubject
instead.@Deprecated public class AMIdentitySubject extends Object implements Subject
Subject
implementation that checks for
membership in a set of AMIdentity
objects using the underlying
Identity repository service.Constructor and Description |
---|
AMIdentitySubject()
Deprecated.
Constructs an
AMIdentityObject |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Creates and returns a copy of this object.
|
boolean |
equals(Object o)
Deprecated.
Indicates whether some other object is "equal to" this one.
|
String |
getDisplayNameForValue(String value,
Locale locale)
Deprecated.
Returns the display name for the value for the given locale.
|
ValidValues |
getValidValues(SSOToken token)
Deprecated.
Returns a list of possible values for the
Subject . |
ValidValues |
getValidValues(SSOToken token,
String pattern)
Deprecated.
Returns a list of possible values for the
Subject
that matches the pattern. |
Set |
getValues()
Deprecated.
Returns the values that was set using the
method
setValues . |
Syntax |
getValueSyntax(SSOToken token)
Deprecated.
Returns the syntax of the values the
AMIdentitySubject implementation can have. |
int |
hashCode()
Deprecated.
Return a hash code for this
AMIdentitySubject . |
void |
initialize(Map configParams)
Deprecated.
Initialize the AMIdentitySubject object by using the configuration
information passed by the Policy Framework.
|
boolean |
isMember(SSOToken token)
Deprecated.
Determines if the user is a member of this instance of the
Subject object. |
void |
setValues(Set names)
Deprecated.
Sets the values identifying
AMIdentity objects on which
membership would be checked |
public AMIdentitySubject()
AMIdentityObject
public void initialize(Map configParams) throws PolicyException
This implementation not need anything out of the configParams
I/code> so does no operation.
initialize
in interface Subject
configParams
- configuration parameters as a Map
.PolicyException
- if an error occured during
initialization of Subject
instancepublic Syntax getValueSyntax(SSOToken token) throws SSOException
AMIdentitySubject
implementation can have.getValueSyntax
in interface Subject
token
- the SSOToken
that will be used
to determine the syntaxSyntax
of the values in this plugin.
It returns Syntax.MULTIPLE_CHOICE
.SSOException
- if SSOToken
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 SSOToken
is not validPolicyException
- if unable to get the list of valid
names.
NOTE: The AMIdentitySubject plugin does not support this
functionality and in turn throws unsupported
PolicyException
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.
NOTE: The AMIdentitySubject plugin does not support this
functionality and in turn throws unsupported
PolicyException
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
AMIdentity
objects on which
membership would be checkedsetValues
in interface Subject
names
- universalId(s)
of AMIdentity
objects on which memberships would be checkedInvalidNameException
- 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 member of
this 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()
AMIdentitySubject
.public boolean equals(Object o)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.