public class SAML2ScopedStringAttributeEncoder extends AbstractSAML2AttributeEncoder<ScopedStringAttributeValue> implements AttributeMapperProcessor<org.opensaml.saml.saml2.metadata.RequestedAttribute,IdPRequestedAttribute>
AttributeEncoder that produces a SAML 2 Attribute from an
IdPAttribute that contains scoped string values.| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private String |
scopeAttributeName
Attribute name used for "attribute" scopeType.
|
private String |
scopeDelimiter
Delimiter used for "inline" scopeType.
|
private String |
scopeType
Type of scoping to use.
|
| Constructor and Description |
|---|
SAML2ScopedStringAttributeEncoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEncodeValue(IdPAttribute attribute,
IdPAttributeValue value) |
protected void |
doInitialize()
Ensures that the values we will need are all there.
|
protected org.opensaml.core.xml.XMLObject |
encodeValue(IdPAttribute attribute,
ScopedStringAttributeValue value) |
String |
getScopeAttributeName()
Get the name of the non-inline scope-carrying attribute.
|
String |
getScopeDelimiter()
Get the scope delimiter.
|
String |
getScopeType()
Get the scope syntax type.
|
void |
populateAttributeMapper(AbstractSAMLAttributeMapper<org.opensaml.saml.saml2.metadata.RequestedAttribute,IdPRequestedAttribute> mapper) |
void |
setScopeAttributeName(String newScopeAttribute)
Set the name of the non-inline scope-carrying attribute.
|
void |
setScopeDelimiter(String newScopeDelimiter)
Set the scope delimiter.
|
void |
setScopeType(String newScopeType)
Set the scope syntax type.
|
buildAttribute, equals, getEffectiveNameFormat, getFriendlyName, getMapperId, getNameFormat, getProtocol, hashCode, setFriendlyName, setNameFormatencode, encodeType, getActivationCondition, getName, setActivationCondition, setEncodeType, setNamedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetNameencode, getActivationCondition@Nonnull private final org.slf4j.Logger log
public SAML2ScopedStringAttributeEncoder()
@Nullable public String getScopeAttributeName()
@Nullable public String getScopeDelimiter()
@Nullable public String getScopeType()
public void setScopeAttributeName(@Nullable String newScopeAttribute)
newScopeAttribute - the name to setpublic void setScopeDelimiter(@Nullable String newScopeDelimiter)
newScopeDelimiter - delimiter to setpublic void setScopeType(@Nullable String newScopeType)
newScopeType - the scope syntax typeprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractSAMLAttributeEncoder<org.opensaml.saml.saml2.core.Attribute,ScopedStringAttributeValue>ComponentInitializationExceptionprotected boolean canEncodeValue(@Nonnull IdPAttribute attribute, @Nonnull IdPAttributeValue value)
canEncodeValue in class AbstractSAMLAttributeEncoder<org.opensaml.saml.saml2.core.Attribute,ScopedStringAttributeValue>@Nullable protected org.opensaml.core.xml.XMLObject encodeValue(@Nonnull IdPAttribute attribute, @Nonnull ScopedStringAttributeValue value) throws AttributeEncodingException
encodeValue in class AbstractSAMLAttributeEncoder<org.opensaml.saml.saml2.core.Attribute,ScopedStringAttributeValue>AttributeEncodingException@Nonnull public void populateAttributeMapper(AbstractSAMLAttributeMapper<org.opensaml.saml.saml2.metadata.RequestedAttribute,IdPRequestedAttribute> mapper)
populateAttributeMapper in interface AttributeMapperProcessor<org.opensaml.saml.saml2.metadata.RequestedAttribute,IdPRequestedAttribute>Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.