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 Objectclone()Creates and returns a copy of this object.booleanequals(Object o)Indicates whether some other object is "equal to" this one.StringgetDisplayNameForValue(String value, Locale locale)Returns the display name for property value.ValidValuesgetValidValues(SSOToken token)Returns an empty list as possible values.ValidValuesgetValidValues(SSOToken token, String pattern)Returns an empty list as possible values.SetgetValues()Returns valuesSyntaxgetValueSyntax(SSOToken token)Return the syntax for displaying the property value.inthashCode()Return a hash code for thisAuthenticatedUsers.voidinitialize(Map configParams)Initialize the subject.booleanisMember(SSOToken token)Determines if the user belongs to this instance of theSubjectobject.voidsetValues(Set values)Set values.
-
-
-
Method Detail
-
initialize
public void initialize(Map configParams)
Initialize the subject. No properties are required for this subject.- Specified by:
initializein interfaceSubject- Parameters:
configParams- configuration information
-
getValueSyntax
public Syntax getValueSyntax(SSOToken token)
Return the syntax for displaying the property value.- Specified by:
getValueSyntaxin 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:
getValidValuesin interfaceSubject- Parameters:
token- theSSOToken- Returns:
ValidValuesobject with empty list.
-
getValidValues
public ValidValues getValidValues(SSOToken token, String pattern)
Returns an empty list as possible values.- Specified by:
getValidValuesin interfaceSubject- Parameters:
token- theSSOTokenpattern- the pattern to match in valid values. Ignored for this subject- Returns:
ValidValuesobject with empty list.
-
getDisplayNameForValue
public String getDisplayNameForValue(String value, Locale locale)
Returns the display name for property value.- Specified by:
getDisplayNameForValuein 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:SubjectDetermines if the user belongs to this instance of theSubjectobject. For example, a Role implementation would returntrueif the user belongs the specified role;falseotherwise.- Specified by:
isMemberin interfaceSubject- Parameters:
token- single-sign-on token of the user- Returns:
trueif the user is member of the given subject;falseotherwise.- 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.
-
-