public class AMAuthenticationSchema extends Object
AMModule
instance.Modifier | Constructor and Description |
---|---|
protected |
AMAuthenticationSchema(ServiceSchema schema) |
Modifier and Type | Method and Description |
---|---|
Set |
getAttributeNames()
Returns a set of all the attribute names.
|
AttributeSchema |
getAttributeSchema(String attr)
Returns an
AttributeSchema of the specified attribute name. |
Set |
getAttributeSchemas()
Returns a Set which contains all the
AttributeSchemas . |
Map |
getAttributeValues()
Returns the default values for all the attributes.
|
Map |
getAttributeValues(Set names)
Returns the default values for the specified attributes.
|
String |
getName()
Returns the name of this schema.
|
Set |
getRequiredAttributeNames()
Returns a set of required attribute names.
|
String |
getServiceName()
Returns the name of the service schema.
|
void |
setAttribute(String attrName,
Set values)
Sets default value for a specific attribute.
|
void |
setAttributeValues(Map values)
Sets the default attribute values.
|
protected AMAuthenticationSchema(ServiceSchema schema)
public String getName()
public String getServiceName()
public Set getRequiredAttributeNames()
Set
of the required attribute names of
the subject schema.public Set getAttributeNames()
Set
of all the attribute names.public AttributeSchema getAttributeSchema(String attr)
AttributeSchema
of the specified attribute name.attr
- the specified attribute name.AttributeSchema
of the attribute.public Set getAttributeSchemas()
AttributeSchemas
.AttributeSchema
.public Map getAttributeValues()
Map
that contains all the default attributes
and their values.public Map getAttributeValues(Set names)
names
- a Set
of attribute names in String values.Map
that contains all the default attributes
and their values for the specified attributes.public void setAttributeValues(Map values) throws SchemaException, SMSException, SSOException
values
- A map of the names of AttributeSchema
to
modify, and a Set of Values which should replace the default
values of the current schema.SchemaException
SMSException
- if an error occurred while performing the operationSSOException
- if the single sign on token is invalid or expiredpublic void setAttribute(String attrName, Set values) throws SchemaException, SMSException, SSOException
attrName
- Name of the attribute for which defaults
values need to be replaced.values
- Set of new values to replace the old ones.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 expiredCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.