EncodedType - the type of data that can be encoded by the encoderpublic abstract class AbstractSAML1AttributeEncoder<EncodedType extends IdPAttributeValue> extends AbstractSAMLAttributeEncoder<Attribute,EncodedType> implements SAML1AttributeEncoder<EncodedType>, AttributeDesignatorMapperProcessor<IdPAttribute>
Attribute.| Modifier and Type | Field and Description |
|---|---|
private SAMLObjectBuilder<Attribute> |
attributeBuilder
Builder used to construct
Attribute objects. |
private String |
namespace
The namespace in which the attribute name is interpreted.
|
| Constructor and Description |
|---|
AbstractSAML1AttributeEncoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Attribute |
buildAttribute(IdPAttribute idpAttribute,
List<XMLObject> attributeValues)
Builds a SAML attribute element from the given attribute values.
|
protected void |
doInitialize() |
boolean |
equals(Object obj) |
private String |
getMapperId()
Generate an Id suitable for the mapper.
|
String |
getNamespace()
Get the encoded Namespace of the attribute.
|
String |
getProtocol() |
int |
hashCode() |
void |
populateAttributeMapper(AbstractSAMLAttributeDesignatorMapper<IdPAttribute> mapper)
This populates the attribute mapper to go from a SAML AttributeDesignator to an IdP Attribute (or
derivative) such that applying the output of the mapper to the encoder will produce the name attribute
(and vice versa).
|
void |
setNamespace(String attributeNamespace)
Set the namespace in which the attribute name is interpreted.
|
canEncodeValue, encode, encodeType, encodeValue, getActivationCondition, getName, setActivationCondition, setEncodeType, setNamedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetNameencode, getActivationCondition@Nonnull private final SAMLObjectBuilder<Attribute> attributeBuilder
Attribute objects.@NonnullAfterInit private String namespace
public AbstractSAML1AttributeEncoder()
@Nonnull @NotEmpty public final String getProtocol()
getProtocol in interface AttributeEncoder<Attribute>@NonnullAfterInit public String getNamespace()
getNamespace in interface SAML1AttributeEncoder<EncodedType extends IdPAttributeValue>public void setNamespace(@Nonnull@NotEmpty String attributeNamespace)
attributeNamespace - namespace in which the attribute name is interpretedprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractSAMLAttributeEncoder<Attribute,EncodedType extends IdPAttributeValue>ComponentInitializationException@Nonnull protected Attribute buildAttribute(@Nonnull IdPAttribute idpAttribute, @Nonnull@NonnullElements List<XMLObject> attributeValues) throws AttributeEncodingException
buildAttribute in class AbstractSAMLAttributeEncoder<Attribute,EncodedType extends IdPAttributeValue>idpAttribute - the attribute being encoded, never nullattributeValues - the encoded values for the attribute, never null or containing null elementsAttributeEncodingException - thrown if there is a problem constructing the SAML attribute@Nonnull public void populateAttributeMapper(@Nonnull AbstractSAMLAttributeDesignatorMapper<IdPAttribute> mapper)
The populated mapper must not have any associated (IdP) Attribute names and must implement
Object.equals(Object) and Object.hashCode().
populateAttributeMapper in interface AttributeDesignatorMapperProcessor<IdPAttribute>mapper - the mapper.public boolean equals(Object obj)
equals in class AbstractSAMLAttributeEncoder<Attribute,EncodedType extends IdPAttributeValue>public int hashCode()
hashCode in class AbstractSAMLAttributeEncoder<Attribute,EncodedType extends IdPAttributeValue>Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.