Class PairTranscoder

  • All Implemented Interfaces:
    net.shibboleth.idp.attribute.transcoding.AttributeTranscoder<net.shibboleth.utilities.java.support.collection.Pair>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

    public class PairTranscoder
    extends net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<net.shibboleth.utilities.java.support.collection.Pair>
    Sample transcoder for tests.
    • Constructor Summary

      Constructors 
      Constructor Description
      PairTranscoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEncodeValue​(net.shibboleth.idp.attribute.IdPAttribute idpAttribute, net.shibboleth.idp.attribute.IdPAttributeValue value)  
      net.shibboleth.idp.attribute.IdPAttribute doDecode​(org.opensaml.profile.context.ProfileRequestContext profileRequestContext, net.shibboleth.utilities.java.support.collection.Pair input, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
      net.shibboleth.utilities.java.support.collection.Pair doEncode​(org.opensaml.profile.context.ProfileRequestContext profileRequestContext, net.shibboleth.idp.attribute.IdPAttribute attribute, Class<? extends net.shibboleth.utilities.java.support.collection.Pair> to, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
      String getEncodedName​(net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
      Class<net.shibboleth.utilities.java.support.collection.Pair> getEncodedType()
      • 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 interface net.shibboleth.utilities.java.support.component.InitializableComponent

        initialize, isInitialized
    • Constructor Detail

      • PairTranscoder

        public PairTranscoder()
    • Method Detail

      • getEncodedType

        public Class<net.shibboleth.utilities.java.support.collection.Pair> getEncodedType()
      • getEncodedName

        public String getEncodedName​(net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
      • doEncode

        public net.shibboleth.utilities.java.support.collection.Pair doEncode​(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
                                                                              net.shibboleth.idp.attribute.IdPAttribute attribute,
                                                                              Class<? extends net.shibboleth.utilities.java.support.collection.Pair> to,
                                                                              net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
                                                                       throws net.shibboleth.idp.attribute.AttributeEncodingException
        Specified by:
        doEncode in class net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<net.shibboleth.utilities.java.support.collection.Pair>
        Throws:
        net.shibboleth.idp.attribute.AttributeEncodingException
      • doDecode

        public net.shibboleth.idp.attribute.IdPAttribute doDecode​(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
                                                                  net.shibboleth.utilities.java.support.collection.Pair input,
                                                                  net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
                                                           throws net.shibboleth.idp.attribute.AttributeDecodingException
        Specified by:
        doDecode in class net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<net.shibboleth.utilities.java.support.collection.Pair>
        Throws:
        net.shibboleth.idp.attribute.AttributeDecodingException
      • canEncodeValue

        protected boolean canEncodeValue​(net.shibboleth.idp.attribute.IdPAttribute idpAttribute,
                                         net.shibboleth.idp.attribute.IdPAttributeValue value)