Class CryptoTransientNameIdentifierDecoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.saml.nameid.impl.BaseCryptoTransientDecoder
-
- net.shibboleth.idp.saml.nameid.impl.CryptoTransientNameIdentifierDecoder
-
- All Implemented Interfaces:
NameIdentifierDecoder,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class CryptoTransientNameIdentifierDecoder extends BaseCryptoTransientDecoder implements NameIdentifierDecoder
Processes a transientNameIdentifier, checks that itsNameIdentifier.getNameQualifier()is correct, and decodesXSString.getValue()via the base class (reversing the work done byCryptoTransientIdGenerationStrategy).
-
-
Constructor Summary
Constructors Constructor Description CryptoTransientNameIdentifierDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecode(SubjectCanonicalizationContext c14nContext, NameIdentifier nameIdentifier)Decode the providedNameIdentifier.-
Methods inherited from class net.shibboleth.idp.saml.nameid.impl.BaseCryptoTransientDecoder
decode, doInitialize, getDataSealer, getLogPrefix, setDataSealer
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, 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.IdentifiedComponent
getId
-
-
-
-
Method Detail
-
decode
@Nullable @NotEmpty public String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull NameIdentifier nameIdentifier) throws NameDecoderException
Decode the providedNameIdentifier.If the object is incompatible with the decoder in some way, a null is returned.
- Specified by:
decodein interfaceNameIdentifierDecoder- Parameters:
c14nContext- the active c14n contextnameIdentifier- the object to decode- Returns:
- the principal decoded from the value, or null
- Throws:
NameDecoderException- if an error occurred during translation
-
-