Class PairTranscoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.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 Constructor Description PairTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEncodeValue(IdPAttribute idpAttribute, IdPAttributeValue value)IdPAttributedoDecode(ProfileRequestContext profileRequestContext, Pair input, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)PairdoEncode(ProfileRequestContext profileRequestContext, IdPAttribute attribute, Class<? extends Pair> to, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)StringgetEncodedName(net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)Class<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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Method Detail
-
getEncodedName
public String getEncodedName(net.shibboleth.idp.attribute.transcoding.TranscodingRule rule)
-
doEncode
public Pair doEncode(ProfileRequestContext profileRequestContext, IdPAttribute attribute, Class<? extends Pair> to, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) throws AttributeEncodingException
- Specified by:
doEncodein classnet.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<Pair>- Throws:
AttributeEncodingException
-
doDecode
public IdPAttribute doDecode(ProfileRequestContext profileRequestContext, Pair input, net.shibboleth.idp.attribute.transcoding.TranscodingRule rule) throws AttributeDecodingException
- Specified by:
doDecodein classnet.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<Pair>- Throws:
AttributeDecodingException
-
canEncodeValue
protected boolean canEncodeValue(IdPAttribute idpAttribute, IdPAttributeValue value)
-
-