Package com.sun.identity.policy.plugins
Class AuthenticatedAgents
- java.lang.Object
-
- com.sun.identity.policy.plugins.AuthenticatedAgents
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedAgents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAuthenticatedAgents()Default ConstructorObjectclone()Creates and returns a copy of this object.StringgetDisplayNameForValue(String value, Locale locale)This method does nothing as there are no values to display for this subject.ValidValuesgetValidValues(SSOToken token)Returns an empty list as possible values.ValidValuesgetValidValues(SSOToken token, String pattern)Returns an empty list as possible values.SetgetValues()Returns an empty collection as value.SyntaxgetValueSyntax(SSOToken token)Returns the syntax of the subject type.inthashCode()Return a hash code for thisAuthenticatedAgents.voidinitialize(Map configParams)Initialize the subject.booleanisMember(SSOToken token)Determines if the agent belongs to theAuthenticatedAgentsobject.protected booleanisSpecialUser(String dn)checks if distinguished user name is a special user (the url access agent, in particular).voidsetValues(Set names)This method does nothing for this subject as there are no values to set for this subject.
-
-
-
Method Detail
-
AuthenticatedAgents
public void AuthenticatedAgents()
Default Constructor
-
initialize
public void initialize(Map configParams)
Initialize the subject. No properties are required for this subject.- Specified by:
initializein interfaceSubject- Parameters:
configParams- configurational information
-
getValueSyntax
public Syntax getValueSyntax(SSOToken token)
Returns the syntax of the subject type.- Specified by:
getValueSyntaxin interfaceSubject- Parameters:
token- theSSOToken. Not used for this subject.- Returns:
- Syntax for this subject.
- 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)
This method does nothing as there are no values to display for this subject.- Specified by:
getDisplayNameForValuein 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.
-
getValues
public Set getValues()
Returns an empty collection as value.
-
setValues
public void setValues(Set names)
This method does nothing for this subject as there are no values to set for this subject.
-
isMember
public boolean isMember(SSOToken token) throws SSOException
Determines if the agent belongs to theAuthenticatedAgentsobject.- Specified by:
isMemberin interfaceSubject- Parameters:
token- SSOToken of the agent- Returns:
trueif the agent SSOToken is valid.falseotherwise.- Throws:
SSOException- if error occurs while validating the token.
-
clone
public Object clone()
Creates and returns a copy of this object.
-
hashCode
public int hashCode()
Return a hash code for thisAuthenticatedAgents.
-
isSpecialUser
protected boolean isSpecialUser(String dn)
checks if distinguished user name is a special user (the url access agent, in particular). returns true if so.
-
-