Class OIDCByteAttributeTranscoder

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<net.minidev.json.JSONObject>
net.shibboleth.oidc.attribute.transcoding.AbstractOIDCAttributeTranscoder
net.shibboleth.oidc.attribute.transcoding.impl.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 Details

    • OIDCByteAttributeTranscoder

      public OIDCByteAttributeTranscoder()
  • Method Details

    • 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