Package com.sun.identity.policy.plugins
Class AMIdentitySubject
- java.lang.Object
-
- com.sun.identity.policy.plugins.AMIdentitySubject
-
@Deprecated public class AMIdentitySubject extends Object implements Subject
Deprecated.UseIdentitySubject
instead.AMIdentitySubject is aSubject
implementation that checks for membership in a set ofAMIdentity
objects using the underlying Identity repository service.
-
-
Constructor Summary
Constructors Constructor Description AMIdentitySubject()
Deprecated.Constructs anAMIdentityObject
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 theSubject
.ValidValues
getValidValues(SSOToken token, String pattern)
Deprecated.Returns a list of possible values for theSubject
that matches the pattern.Set
getValues()
Deprecated.Returns the values that was set using the methodsetValues
.Syntax
getValueSyntax(SSOToken token)
Deprecated.Returns the syntax of the values theAMIdentitySubject
implementation can have.int
hashCode()
Deprecated.Return a hash code for thisAMIdentitySubject
.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 theSubject
object.void
setValues(Set names)
Deprecated.Sets the values identifyingAMIdentity
objects on which membership would be checked
-
-
-
Method Detail
-
initialize
public void initialize(Map configParams) throws PolicyException
Deprecated.Initialize the AMIdentitySubject object by using the configuration information passed by the Policy Framework.This implementation not need anything out of the
configParams I/code> so does no operation.
- Specified by:
initialize
in interfaceSubject
- Parameters:
configParams
- configuration parameters as aMap
.- Throws:
PolicyException
- if an error occured during initialization ofSubject
instance
-
getValueSyntax
public Syntax getValueSyntax(SSOToken token) throws SSOException
Deprecated.Returns the syntax of the values theAMIdentitySubject
implementation can have.- Specified by:
getValueSyntax
in interfaceSubject
- Parameters:
token
- theSSOToken
that will be used to determine the syntax- Returns:
Syntax
of the values in this plugin. It returnsSyntax.MULTIPLE_CHOICE
.- Throws:
SSOException
- ifSSOToken
is not valid- See Also:
Syntax
-
getValidValues
public ValidValues getValidValues(SSOToken token) throws SSOException, PolicyException
Deprecated.Returns a list of possible values for theSubject
.- Specified by:
getValidValues
in interfaceSubject
- Parameters:
token
- theSSOToken
that will be used to determine the possible values- Returns:
ValidValues
object- Throws:
SSOException
- ifSSOToken
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 unsupportedPolicyException
-
getValidValues
public ValidValues getValidValues(SSOToken token, String pattern) throws SSOException, PolicyException
Deprecated.Returns a list of possible values for theSubject
that matches the pattern.- Specified by:
getValidValues
in interfaceSubject
- Parameters:
token
- theSSOToken
that will be used to determine the possible valuespattern
- search pattern that will be used to narrow the list of valid names.- Returns:
ValidValues
object- Throws:
SSOException
- 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 unsupportedPolicyException
-
getDisplayNameForValue
public String getDisplayNameForValue(String value, Locale locale) throws NameNotFoundException
Deprecated.Returns the display name for the value for the given locale. For all the valid values obtained through the methodsgetValidValues
this method must be called by GUI and CLI to get the corresponding display name. Thelocale
variable could be used by the plugin to customize the display name for the given locale. Thelocale
variable could benull
, 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 thevalue
as is.- Specified by:
getDisplayNameForValue
in interfaceSubject
- Parameters:
value
- one of the valid value for the pluginlocale
- locale for which the display name must be customized- Returns:
- the display name for the value for the given locale.
- Throws:
NameNotFoundException
- if the givenvalue
is not one of the valid values for the plugin
-
getValues
public Set getValues()
Deprecated.Returns the values that was set using the methodsetValues
.
-
setValues
public void setValues(Set names) throws InvalidNameException
Deprecated.Sets the values identifyingAMIdentity
objects on which membership would be checked- Specified by:
setValues
in interfaceSubject
- Parameters:
names
-universalId(s)
ofAMIdentity
objects on which memberships would be checked- Throws:
InvalidNameException
- if the given names are not valid
-
isMember
public boolean isMember(SSOToken token) throws SSOException, PolicyException
Deprecated.Determines if the user is a member of this instance of theSubject
object.- Specified by:
isMember
in interfaceSubject
- Parameters:
token
- single sign on token of the user- Returns:
true
if the user is member of this subject;false
otherwise.- Throws:
SSOException
- if SSO token is not validPolicyException
- if an error occured while checking if the user is a member of this subject
-
hashCode
public int hashCode()
Deprecated.Return a hash code for thisAMIdentitySubject
.
-
equals
public boolean equals(Object o)
Deprecated.Indicates whether some other object is "equal to" this one.
-
-