Class CryptoTransientNameIDDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.saml.nameid.impl.BaseCryptoTransientDecoder
net.shibboleth.idp.saml.nameid.impl.CryptoTransientNameIDDecoder
- All Implemented Interfaces:
NameIDDecoder,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class CryptoTransientNameIDDecoder
extends BaseCryptoTransientDecoder
implements NameIDDecoder
Processes a transient
NameID, checks that its NameIDType.getNameQualifier() and
NameIDType.getSPNameQualifier() are correct, and decodes XSString.getValue()
via the base class (reversing the work done by
CryptoTransientIdGenerationStrategy).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(SubjectCanonicalizationContext c14nContext, NameID nameID) Decode the providedNameID.Methods inherited from class net.shibboleth.idp.saml.nameid.impl.BaseCryptoTransientDecoder
decode, doInitialize, getDataSealer, getLogPrefix, setDataSealerMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, 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.IdentifiedComponent
getId
-
Constructor Details
-
CryptoTransientNameIDDecoder
public CryptoTransientNameIDDecoder()
-
-
Method Details
-
decode
@Nullable @NotEmpty public String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull NameID nameID) throws NameDecoderException Decode the providedNameID.If the object is incompatible with the decoder in some way, a null is returned.
- Specified by:
decodein interfaceNameIDDecoder- Parameters:
c14nContext- the active c14n contextnameID- the object to decode- Returns:
- the principal decoded from the value, or null
- Throws:
NameDecoderException- if an error occurred during translation
-