OutType - the output (IdP Attribute) typepublic abstract class AbstractSAMLAttributeDesignatorMapper<OutType extends IdPAttribute> extends AbstractIdentifiableInitializableComponent implements AttributeMapper<AttributeDesignator,OutType>
AttributeDesignator into an IdP IdPAttribute.| Modifier and Type | Field and Description |
|---|---|
private List<String> |
attributeIds
The internal names to generate.
|
private String |
attributeNamespace
The attribute namespace.
|
private org.slf4j.Logger |
log
Class logger.
|
private String |
logPrefix
The String used to prefix log message.
|
private String |
theSAMLName
the (SAML) attribute name.
|
| Constructor and Description |
|---|
AbstractSAMLAttributeDesignatorMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
attributeMatches(AttributeDesignator designator)
Determines if the input matches the provided parameterisation.
|
protected void |
doInitialize() |
boolean |
equals(Object obj)
.
|
List<String> |
getAttributeIds()
Get the list of internal identifiers.
|
String |
getAttributeNamespace()
Get the (optional) attribute namespace.
|
protected String |
getLogPrefix()
return a string which is to be prepended to all log messages.
|
String |
getSAMLName()
Get the SAML attribute name.
|
int |
hashCode()
.
|
Map<String,OutType> |
mapAttribute(AttributeDesignator prototype)
Map the SAML attribute to the required output type.
|
protected boolean |
matches(String otherSAMLName,
String otherSAMLNamespace)
Compare whether the name and namespace given "match" ours.
|
protected abstract OutType |
newAttribute(AttributeDesignator input,
String id)
Function to summon up the output type based on an ID and an object of the input type.
|
void |
setAttributeIds(List<String> theIds)
Set the list of internal identifiers.
|
void |
setAttributeNamespace(String ns)
Set the (optional) attribute namespace.
|
void |
setSAMLName(String name)
Set the SAML attribute name.
|
setIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetId@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private List<String> attributeIds
@NonnullAfterInit private String theSAMLName
public AbstractSAMLAttributeDesignatorMapper()
public void setAttributeIds(@Nullable@NullableElements List<String> theIds)
theIds - the list@Nonnull @NonnullElements @Unmodifiable public List<String> getAttributeIds()
public void setSAMLName(@Nullable String name)
name - the name@NonnullAfterInit public String getSAMLName()
public void setAttributeNamespace(@Nullable String ns)
ns - the namespace to set@Nullable public String getAttributeNamespace()
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationExceptionprotected boolean matches(@Nonnull@NotEmpty String otherSAMLName, @Nullable String otherSAMLNamespace)
otherSAMLName - the name to compare againstotherSAMLNamespace - the bamespace to compare againstprotected boolean attributeMatches(@Nonnull AttributeDesignator designator)
designator - the designator to consider@Nonnull @NonnullElements public Map<String,OutType> mapAttribute(@Nonnull AttributeDesignator prototype)
If the input contains values to be decoded, failure to decode any values results in a failure to map the input at all.
mapAttribute in interface AttributeMapper<AttributeDesignator,OutType extends IdPAttribute>prototype - the SAML attribute@Nonnull @NotEmpty protected String getLogPrefix()
public boolean equals(Object obj)
public int hashCode()
@Nonnull protected abstract OutType newAttribute(@Nonnull AttributeDesignator input, @Nonnull@NotEmpty String id)
input - the input value to inspect.id - the identifier of the new attribute.Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.