Package com.sun.identity.policy.plugins
Class PrivilegeSubject
- java.lang.Object
-
- com.sun.identity.policy.plugins.PrivilegeSubject
-
-
Constructor Summary
Constructors Constructor Description PrivilegeSubject()
Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 property value.ValidValues
getValidValues(SSOToken token)
Returns an empty list as possible values.ValidValues
getValidValues(SSOToken token, String pattern)
Returns an empty list as possible values.Set
getValues()
Returns valuesSyntax
getValueSyntax(SSOToken token)
Return the syntax for displaying the property value.int
hashCode()
Return a hash code for thisAuthenticatedUsers
.void
initialize(Map configParams)
Initialize the subject.boolean
isMember(SSOToken token)
Determines if the user belongs to this instance of theSubject
object.void
setValues(Set values)
Set values.
-
-
-
Method Detail
-
initialize
public void initialize(Map configParams)
Initialize the subject. No properties are required for this subject.- Specified by:
initialize
in interfaceSubject
- Parameters:
configParams
- configuration information
-
getValueSyntax
public Syntax getValueSyntax(SSOToken token)
Return the syntax for displaying the property value.- Specified by:
getValueSyntax
in interfaceSubject
- Parameters:
token
- SSO token- Returns:
- syntax for displaying the property value.
- See Also:
Syntax
-
getValidValues
public ValidValues getValidValues(SSOToken token)
Returns an empty list as possible values.- Specified by:
getValidValues
in interfaceSubject
- Parameters:
token
- theSSOToken
- Returns:
ValidValues
object with empty list.
-
getValidValues
public ValidValues getValidValues(SSOToken token, String pattern)
Returns an empty list as possible values.- Specified by:
getValidValues
in interfaceSubject
- Parameters:
token
- theSSOToken
pattern
- the pattern to match in valid values. Ignored for this subject- Returns:
ValidValues
object with empty list.
-
getDisplayNameForValue
public String getDisplayNameForValue(String value, Locale locale)
Returns the display name for property value.- Specified by:
getDisplayNameForValue
in interfaceSubject
- Parameters:
value
- Property value.locale
- Locale.- Returns:
- the display name for property value.
-
getValues
public Set getValues()
Returns values
-
setValues
public void setValues(Set values)
Set values.
-
isMember
public boolean isMember(SSOToken token) throws SSOException
Description copied from interface:Subject
Determines if the user belongs to this instance of theSubject
object. For example, a Role implementation would returntrue
if the user belongs the specified role;false
otherwise.- Specified by:
isMember
in interfaceSubject
- Parameters:
token
- single-sign-on token of the user- Returns:
true
if the user is member of the given subject;false
otherwise.- Throws:
SSOException
- if SSO token is not valid
-
equals
public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
-
clone
public Object clone()
Creates and returns a copy of this object.
-
-