Class AMAuthenticationSchema
- java.lang.Object
-
- com.sun.identity.authentication.config.AMAuthenticationSchema
-
public class AMAuthenticationSchema extends Object
This class implements a subset of the service schema operations for theAMModuleinstance.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAMAuthenticationSchema(ServiceSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetgetAttributeNames()Returns a set of all the attribute names.AttributeSchemagetAttributeSchema(String attr)Returns anAttributeSchemaof the specified attribute name.SetgetAttributeSchemas()Returns a Set which contains all theAttributeSchemas.MapgetAttributeValues()Returns the default values for all the attributes.MapgetAttributeValues(Set names)Returns the default values for the specified attributes.StringgetName()Returns the name of this schema.SetgetRequiredAttributeNames()Returns a set of required attribute names.StringgetServiceName()Returns the name of the service schema.voidsetAttribute(String attrName, Set values)Sets default value for a specific attribute.voidsetAttributeValues(Map values)Sets the default attribute values.
-
-
-
Constructor Detail
-
AMAuthenticationSchema
protected AMAuthenticationSchema(ServiceSchema schema)
-
-
Method Detail
-
getName
public String getName()
Returns the name of this schema.- Returns:
- a String value of the schema name.
-
getServiceName
public String getServiceName()
Returns the name of the service schema.- Returns:
- the name of the service schema.
-
getRequiredAttributeNames
public Set getRequiredAttributeNames()
Returns a set of required attribute names.- Returns:
- a
Setof the required attribute names of the subject schema.
-
getAttributeNames
public Set getAttributeNames()
Returns a set of all the attribute names.- Returns:
- a
Setof all the attribute names.
-
getAttributeSchema
public AttributeSchema getAttributeSchema(String attr)
Returns anAttributeSchemaof the specified attribute name.- Parameters:
attr- the specified attribute name.- Returns:
- the
AttributeSchemaof the attribute.
-
getAttributeSchemas
public Set getAttributeSchemas()
Returns a Set which contains all theAttributeSchemas.- Returns:
- Set of
AttributeSchema.
-
getAttributeValues
public Map getAttributeValues()
Returns the default values for all the attributes.- Returns:
- a
Mapthat contains all the default attributes and their values.
-
getAttributeValues
public Map getAttributeValues(Set names)
Returns the default values for the specified attributes.- Parameters:
names- aSetof attribute names in String values.- Returns:
- a
Mapthat contains all the default attributes and their values for the specified attributes.
-
setAttributeValues
public void setAttributeValues(Map values) throws SchemaException, SMSException, SSOException
Sets the default attribute values.- Parameters:
values- A map of the names ofAttributeSchemato modify, and a Set of Values which should replace the default values of the current schema.- Throws:
SchemaExceptionSMSException- if an error occurred while performing the operationSSOException- if the single sign on token is invalid or expired
-
setAttribute
public void setAttribute(String attrName, Set values) throws SchemaException, SMSException, SSOException
Sets default value for a specific attribute.- Parameters:
attrName- Name of the attribute for which defaults values need to be replaced.values- Set of new values to replace the old ones.- Throws:
SchemaException- if an error occurred while parsing the XMLSMSException- if an error occurred while performing the operationSSOException- if the single sign on token is invalid or expired
-
-