public abstract class BaseCryptoTransientDecoder extends AbstractIdentifiableInitializableComponent
TransientIdAttributeDefinition and
CryptoTransientIdGenerationStrategy| Modifier and Type | Field and Description |
|---|---|
private DataSealer |
dataSealer
Object used to protect and encrypt the data.
|
private org.slf4j.Logger |
log
Class logger.
|
private String |
logPrefix
cache for the log prefix - to save multiple recalculations.
|
| Constructor and Description |
|---|
BaseCryptoTransientDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
decode(String transientId,
String requesterId)
Convert the transient Id into the principal.
|
protected void |
doInitialize() |
DataSealer |
getDataSealer()
Get the Data Sealer we are using.
|
protected String |
getLogPrefix()
Return a prefix for logging messages for this component.
|
void |
setDataSealer(DataSealer sealer)
Set the Data Sealer we should use.
|
setIdgetIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private DataSealer dataSealer
@NonnullAfterInit public DataSealer getDataSealer()
public void setDataSealer(@Nonnull DataSealer sealer)
sealer - the Data Sealer to use.@Nullable protected String decode(@Nonnull String transientId, @Nonnull@NotEmpty String requesterId) throws NameDecoderException
transientId - the encrypted transientIDrequesterId - the requester IDNameDecoderException - if a decode error occurs.protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.