Class BaseCryptoTransientDecoder
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
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
CryptoTransientNameIDDecoder,CryptoTransientNameIdentifierDecoder
An abstract action which contains the logic to do crypto transient decoding matching. This reverses the work done by
CryptoTransientIdGenerationStrategy-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataSealerObject used to protect and encrypt the data.private final org.slf4j.LoggerClass logger.private Stringcache for the log prefix - to save multiple recalculations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringConvert the transient Id into the principal.protected voidGet the Data Sealer we are using.protected StringReturn a prefix for logging messages for this component.voidsetDataSealer(DataSealer sealer) Set the Data Sealer we should use.Methods 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
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
dataSealer
Object used to protect and encrypt the data. -
logPrefix
cache for the log prefix - to save multiple recalculations.
-
-
Constructor Details
-
BaseCryptoTransientDecoder
public BaseCryptoTransientDecoder()
-
-
Method Details
-
getDataSealer
Get the Data Sealer we are using.- Returns:
- the Data Sealer we are using.
-
decode
@Nullable @NotEmpty protected String decode(@Nonnull String transientId, @Nonnull @NotEmpty String requesterId) throws NameDecoderException Convert the transient Id into the principal.- Parameters:
transientId- the encrypted transientIDrequesterId- the requester ID- Returns:
- the decoded entity.
- Throws:
NameDecoderException- if a decode error occurs.
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
getLogPrefix
Return a prefix for logging messages for this component.- Returns:
- a string for insertion at the beginning of any log messages
-