Class SAML2ScopedStringAttributeTranscoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<AttributeType>
-
- net.shibboleth.idp.saml.attribute.transcoding.AbstractSAMLAttributeTranscoder<Attribute,EncodedType>
-
- net.shibboleth.idp.saml.attribute.transcoding.AbstractSAML2AttributeTranscoder<ScopedStringAttributeValue>
-
- net.shibboleth.idp.saml.attribute.transcoding.impl.SAML2ScopedStringAttributeTranscoder
-
- All Implemented Interfaces:
AttributeTranscoder<Attribute>,SAML2AttributeTranscoder<ScopedStringAttributeValue>,Component,DestructableComponent,InitializableComponent
public class SAML2ScopedStringAttributeTranscoder extends AbstractSAML2AttributeTranscoder<ScopedStringAttributeValue>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.saml.attribute.transcoding.AbstractSAML2AttributeTranscoder
AbstractSAML2AttributeTranscoder.NamingFunction
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.static StringPROP_SCOPE_ATTR_NAMEName of XML attribute when scopeType property is "attribute".static StringPROP_SCOPE_DELIMITERScope delimiter when scopeType property is "inline".static StringPROP_SCOPE_TYPEOne of "inline" or "attribute", controlling the style of XML encoding.-
Fields inherited from interface net.shibboleth.idp.saml.attribute.transcoding.SAML2AttributeTranscoder
PROP_ENCODE_TYPE, PROP_FRIENDLY_NAME, PROP_NAME, PROP_NAME_FORMAT
-
-
Constructor Summary
Constructors Constructor Description SAML2ScopedStringAttributeTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEncodeValue(IdPAttribute attribute, IdPAttributeValue value)protected IdPAttributeValuedecodeValue(ProfileRequestContext profileRequestContext, Attribute attribute, TranscodingRule rule, XMLObject value)protected XMLObjectencodeValue(ProfileRequestContext profileRequestContext, IdPAttribute attribute, TranscodingRule rule, ScopedStringAttributeValue value)-
Methods inherited from class net.shibboleth.idp.saml.attribute.transcoding.AbstractSAML2AttributeTranscoder
buildAttribute, buildIdPAttribute, getEncodedName, getEncodedType, getValues
-
Methods inherited from class net.shibboleth.idp.saml.attribute.transcoding.AbstractSAMLAttributeTranscoder
doDecode, doEncode, getStringValue
-
Methods inherited from class net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder
decode, encode, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.idp.attribute.transcoding.AttributeTranscoder
decode, encode
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
PROP_SCOPE_TYPE
@Nonnull @NotEmpty public static final String PROP_SCOPE_TYPE
One of "inline" or "attribute", controlling the style of XML encoding.- See Also:
- Constant Field Values
-
PROP_SCOPE_ATTR_NAME
@Nonnull @NotEmpty public static final String PROP_SCOPE_ATTR_NAME
Name of XML attribute when scopeType property is "attribute".- See Also:
- Constant Field Values
-
PROP_SCOPE_DELIMITER
@Nonnull @NotEmpty public static final String PROP_SCOPE_DELIMITER
Scope delimiter when scopeType property is "inline".- See Also:
- Constant Field Values
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
-
Method Detail
-
canEncodeValue
protected boolean canEncodeValue(@Nonnull IdPAttribute attribute, @Nonnull IdPAttributeValue value)- Specified by:
canEncodeValuein classAbstractSAMLAttributeTranscoder<Attribute,ScopedStringAttributeValue>
-
encodeValue
@Nullable protected XMLObject encodeValue(@Nullable ProfileRequestContext profileRequestContext, @Nonnull IdPAttribute attribute, @Nonnull TranscodingRule rule, @Nonnull ScopedStringAttributeValue value) throws AttributeEncodingException
- Specified by:
encodeValuein classAbstractSAMLAttributeTranscoder<Attribute,ScopedStringAttributeValue>- Throws:
AttributeEncodingException
-
decodeValue
@Nullable protected IdPAttributeValue decodeValue(@Nullable ProfileRequestContext profileRequestContext, @Nonnull Attribute attribute, @Nonnull TranscodingRule rule, @Nullable XMLObject value)
- Specified by:
decodeValuein classAbstractSAMLAttributeTranscoder<Attribute,ScopedStringAttributeValue>
-
-