Class PairTranscoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.attribute.transcoding.AbstractAttributeTranscoder<net.shibboleth.utilities.java.support.collection.Pair>
-
- net.shibboleth.idp.attribute.transcoding.impl.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 booleancanEncodeValue(net.shibboleth.idp.attribute.IdPAttribute idpAttribute, net.shibboleth.idp.attribute.IdPAttributeValue value)net.shibboleth.idp.attribute.IdPAttributedoDecode(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.PairdoEncode(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)StringgetEncodedName(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
-
-
-
-
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:
doEncodein classnet.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:
doDecodein classnet.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)
-
-