Class OIDCScopedStringAttributeTranscoder

  • All Implemented Interfaces:
    net.shibboleth.idp.attribute.transcoding.AttributeTranscoder<net.minidev.json.JSONObject>, OIDCAttributeTranscoder, Component, DestructableComponent, InitializableComponent

    public class OIDCScopedStringAttributeTranscoder
    extends AbstractOIDCAttributeTranscoder
    Class encoding scoped string attributes to string json object. Name of the attribute will be set as the key. The string contains attribute value, delimiter and scope catenated. If there are several attribute values they are delimited with delimiter(space is default) or placed to array.
    • Constructor Detail

      • OIDCScopedStringAttributeTranscoder

        public OIDCScopedStringAttributeTranscoder()
    • Method Detail

      • encodeValues

        @Nullable
        protected Object encodeValues​(@Nullable
                                      ProfileRequestContext profileRequestContext,
                                      @Nonnull
                                      net.shibboleth.idp.attribute.IdPAttribute attribute,
                                      @Nonnull
                                      net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
                               throws net.shibboleth.idp.attribute.AttributeEncodingException
        Specified by:
        encodeValues in class AbstractOIDCAttributeTranscoder
        Throws:
        net.shibboleth.idp.attribute.AttributeEncodingException
      • decodeValues

        @Nonnull
        @NonnullElements
        protected List<net.shibboleth.idp.attribute.IdPAttributeValue> decodeValues​(@Nullable
                                                                                    ProfileRequestContext profileRequestContext,
                                                                                    @Nonnull
                                                                                    Object input,
                                                                                    @Nonnull
                                                                                    net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
                                                                             throws net.shibboleth.idp.attribute.AttributeDecodingException
        Specified by:
        decodeValues in class AbstractOIDCAttributeTranscoder
        Throws:
        net.shibboleth.idp.attribute.AttributeDecodingException