Class OIDCByteAttributeTranscoder

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

    public class OIDCByteAttributeTranscoder
    extends AbstractOIDCAttributeTranscoder
    Class encoding byte attributes to base64 encoded string json object. Name of the attribute will be set as the key. The string contains base64 coded attribute value. If there are several attribute values they are delimited with space. The output may be set also to array. The output may also be set to be int instead of b64. In that case each value (byte[]) is converted to int array and placed into array.
    • Constructor Detail

      • OIDCByteAttributeTranscoder

        public OIDCByteAttributeTranscoder()
    • 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