public class CryptoTransientIdGenerationStrategy extends AbstractIdentifiableInitializableComponent implements TransientIdGenerationStrategy
DataSealer to encrypt the result into a recoverable value,
for use with stateless clustering.| Modifier and Type | Field and Description |
|---|---|
private DataSealer |
dataSealer
Object used to protect and encrypt the data.
|
private long |
idLifetime
Length, in milliseconds, tokens are valid.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
CryptoTransientIdGenerationStrategy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
String |
generate(String relyingPartyId,
String principalName)
Generate a new Transient ID.
|
long |
getIdLifetime()
Get the time, in milliseconds, ids are valid.
|
void |
setDataSealer(DataSealer sealer)
Set the data sealer to use.
|
void |
setIdLifetime(long lifetime)
Set the time, in milliseconds, ids are valid.
|
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
public CryptoTransientIdGenerationStrategy()
public void setDataSealer(@Nonnull DataSealer sealer)
sealer - object used to protect and encrypt the data@Positive @Duration public long getIdLifetime()
@Duration public void setIdLifetime(@Duration@Positive long lifetime)
lifetime - time, in milliseconds, ids are validprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractIdentifiedInitializableComponentComponentInitializationException@Nonnull @NotEmpty public String generate(@Nonnull@NotEmpty String relyingPartyId, @Nonnull@NotEmpty String principalName) throws org.opensaml.saml.common.SAMLException
generate in interface TransientIdGenerationStrategyrelyingPartyId - the relying party for whom we're generatingprincipalName - the principal to map toorg.opensaml.saml.common.SAMLException - if an error occurs generating the identifierCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.