Class BaseCryptoTransientDecoder
- 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
-
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
CryptoTransientNameIDDecoder,CryptoTransientNameIdentifierDecoder
public abstract class BaseCryptoTransientDecoder extends AbstractIdentifiableInitializableComponent
An abstract action which contains the logic to do crypto transient decoding matching. This reverses the work done byCryptoTransientIdGenerationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private DataSealerdataSealerObject used to protect and encrypt the data.private org.slf4j.LoggerlogClass logger.private StringlogPrefixcache for the log prefix - to save multiple recalculations.
-
Constructor Summary
Constructors Constructor Description BaseCryptoTransientDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringdecode(String transientId, String requesterId)Convert the transient Id into the principal.protected voiddoInitialize()DataSealergetDataSealer()Get the Data Sealer we are using.protected StringgetLogPrefix()Return a prefix for logging messages for this component.voidsetDataSealer(DataSealer sealer)Set the Data Sealer we should use.-
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
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
dataSealer
@NonnullAfterInit private DataSealer dataSealer
Object used to protect and encrypt the data.
-
logPrefix
@Nullable private String logPrefix
cache for the log prefix - to save multiple recalculations.
-
-
Method Detail
-
getDataSealer
@NonnullAfterInit public DataSealer getDataSealer()
Get the Data Sealer we are using.- Returns:
- the Data Sealer we are using.
-
setDataSealer
public void setDataSealer(@Nonnull DataSealer sealer)Set the Data Sealer we should use.- Parameters:
sealer- the Data Sealer to use.
-
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
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
-