Class PairTranscoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<Pair>
net.shibboleth.idp.attribute.transcoding.impl.PairTranscoder
- All Implemented Interfaces:
net.shibboleth.idp.attribute.transcoding.AttributeTranscoder<Pair>,Component,DestructableComponent,InitializableComponent
public class PairTranscoder
extends net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<Pair>
Sample transcoder for tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanEncodeValue(IdPAttribute idpAttribute, IdPAttributeValue value) doDecode(ProfileRequestContext profileRequestContext, Pair input, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) doEncode(ProfileRequestContext profileRequestContext, IdPAttribute attribute, Class<? extends Pair> to, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) getEncodedName(net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) Methods inherited from class net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder
decode, encode, setActivationConditionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Constructor Details
-
PairTranscoder
public PairTranscoder()
-
-
Method Details
-
getEncodedType
-
getEncodedName
@Nullable public String getEncodedName(@Nonnull net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) -
doEncode
@Nonnull public Pair doEncode(@Nullable ProfileRequestContext profileRequestContext, @Nonnull IdPAttribute attribute, @Nonnull Class<? extends Pair> to, @Nonnull net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) throws AttributeEncodingException - Specified by:
doEncodein classnet.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<Pair>- Throws:
AttributeEncodingException
-
canEncodeValue
-