EncodedType - the type of data that can be encoded by the encoderpublic abstract class AbstractSAML2AttributeEncoder<EncodedType extends IdPAttributeValue> extends AbstractSAMLAttributeEncoder<Attribute,EncodedType> implements SAML2AttributeEncoder<EncodedType>
Attribute.| Modifier and Type | Field and Description |
|---|---|
private SAMLObjectBuilder<Attribute> |
attributeBuilder
Builder used to construct
Attribute objects. |
private String |
format
The format of the attribute name.
|
private String |
friendlyName
A friendly, human readable, name for the attribute.
|
| Constructor and Description |
|---|
AbstractSAML2AttributeEncoder()
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.
|
boolean |
equals(Object obj) |
String |
getEffectiveNameFormat()
Get the name format, or the SAML constants for "unspecified", if not set.
|
String |
getFriendlyName()
Get the friendly, human readable, name for the attribute.
|
protected String |
getMapperId()
Generate an Id suitable for the mapper.
|
String |
getNameFormat()
Get the encoded NameFormat of the attribute.
|
String |
getProtocol() |
int |
hashCode() |
void |
setFriendlyName(String attributeFriendlyName)
Set the friendly, human readable, name for the attribute.
|
void |
setNameFormat(String nameFormat)
Set the format of the attribute name.
|
canEncodeValue, doInitialize, 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.@Nullable private String friendlyName
public AbstractSAML2AttributeEncoder()
@Nonnull public final String getProtocol()
getProtocol in interface AttributeEncoder<Attribute>@Nullable public final String getFriendlyName()
public void setFriendlyName(@Nullable String attributeFriendlyName)
attributeFriendlyName - friendly, human readable, name for the attribute@Nullable public String getNameFormat()
getNameFormat in interface SAML2AttributeEncoder<EncodedType extends IdPAttributeValue>@Nonnull @NotEmpty public String getEffectiveNameFormat()
public void setNameFormat(@Nullable String nameFormat)
nameFormat - format in which the attribute name is interpreted@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 protected String getMapperId()
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.