Package com.sun.identity.policy.plugins
Class WebServicesClients
- java.lang.Object
-
- com.sun.identity.policy.plugins.WebServicesClients
-
public class WebServicesClients extends Object implements Subject
This subject represents web services clients that authenticate to web service providers(PP service, Discovery Service) hosted by OpenAM. The clients authenticate either by Anonymous, X509 token, ClientTLS, or SAML token profile. This subject covers X509Token, ClientTLS and SAML Token profiles. The subject values are the subject DNs associated with the web services clients certificates.
-
-
Constructor Summary
Constructors Constructor Description WebServicesClients()
-
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 value as is like other subjects.ValidValuesgetValidValues(SSOToken token)Returns certificate subject DNs in the KeyStore as possible values.ValidValuesgetValidValues(SSOToken token, String pattern)Returns certificate subject DNs in the KeyStore as possible values.SetgetValues()Returns selected web services clients for this subjectSyntaxgetValueSyntax(SSOToken token)Returns the syntax of the subject type.inthashCode()Return a hash code for thisWebServicesClients.voidinitialize(Map configParams)Initialize the subject.booleanisMember(SSOToken token)Determines if the token belongs to theWebServicesClientsobject.voidsetValues(Set names)Sets the selected web services clients for this subject.voidWebServicesClients()Default Constructor
-
-
-
Method Detail
-
WebServicesClients
public void WebServicesClients()
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.- Returns:
- Syntax for this subject.
- See Also:
Syntax
-
getValidValues
public ValidValues getValidValues(SSOToken token) throws SSOException, PolicyException
Returns certificate subject DNs in the KeyStore as possible values.- Specified by:
getValidValuesin interfaceSubject- Parameters:
token- theSSOToken- Returns:
ValidValuesobject wiht certificate subject DNs.- Throws:
SSOException- if SSO token is not validPolicyException- if unable to get the list of valid names.
-
getValidValues
public ValidValues getValidValues(SSOToken token, String pattern) throws SSOException, PolicyException
Returns certificate subject DNs in the KeyStore as possible values.- Specified by:
getValidValuesin interfaceSubject- Parameters:
token- theSSOTokenpattern- the pattern to match with valid values.- Returns:
ValidValuesobject wiht certificate subject DNs.- Throws:
SSOException- if SSO token is not validPolicyException- if unable to get the list of valid names.
-
getDisplayNameForValue
public String getDisplayNameForValue(String value, Locale locale)
Returns the value as is like other subjects.- Specified by:
getDisplayNameForValuein interfaceSubject- Parameters:
value- the input valuelocale- the locale in which value should be returned.- Returns:
- the display name for the value for the given locale.
-
getValues
public Set getValues()
Returns selected web services clients for this subject
-
setValues
public void setValues(Set names) throws InvalidNameException
Sets the selected web services clients for this subject.- Specified by:
setValuesin interfaceSubject- Parameters:
names- the list of clients to set in the subject.- Throws:
InvalidNameException- if the given names are not valid
-
isMember
public boolean isMember(SSOToken token) throws SSOException, PolicyException
Determines if the token belongs to theWebServicesClientsobject.- Specified by:
isMemberin interfaceSubject- Parameters:
token- SSOToken of the user- Returns:
trueif the subject contains one of the web service client's certificate DNs(client ceritifcates, root CA certificate).falseotherwise.- Throws:
SSOException- if SSO token is not validPolicyException- if an error occured while checking if the user is a member of this subject
-
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.
-
-