public class ComputedIDDataConnector extends AbstractPersistentIdDataConnector
ComputedPersistentIdGenerationStrategy.| Modifier and Type | Field and Description |
|---|---|
private ComputedPersistentIdGenerationStrategy |
idStrategy
Generation strategy for IDs.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
ComputedIDDataConnector()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearComputedIdStrategy()
Clear the strategy plugin that generates computed IDs.
|
protected Map<String,IdPAttribute> |
doDataConnectorResolve(net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext,
net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) |
protected void |
doDestroy() |
protected void |
doInitialize() |
ComputedPersistentIdGenerationStrategy |
getComputedIdStrategy()
Get the strategy plugin that generates computed IDs.
|
ComputedPersistentIdGenerationStrategy.Encoding |
getEncoding()
Get the post-digest encoding to use.
|
byte[] |
getSalt()
Get the salt used when computing the ID.
|
void |
setAlgorithm(String alg)
Set the JCE algorithm name of the digest algorithm to use (default is SHA).
|
void |
setEncoding(ComputedPersistentIdGenerationStrategy.Encoding enc)
Set the post-digest encoding to use.
|
void |
setSalt(byte[] salt)
Set the salt used when computing the ID.
|
void |
setSalt(String salt)
Set the salt used when computing the ID.
|
encodeAsAttribute, getGeneratedAttributeId, getSourceAttributeId, resolveSourceAttribute, setGeneratedAttributeId, setSourceAttributeIddoResolve, getFailoverDataConnectorId, getLastFail, getLogPrefix, getNoRetryDelay, setFailoverDataConnectorId, setLastFail, setNoRetryDelayequals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitialize, isInitializeddestroy, isDestroyedgetId@Nonnull private final org.slf4j.Logger log
@Nullable private ComputedPersistentIdGenerationStrategy idStrategy
@Nullable public ComputedPersistentIdGenerationStrategy getComputedIdStrategy()
@Nullable protected void clearComputedIdStrategy()
StoredIDDataConnectorto work if no salt is configured.@Nullable public byte[] getSalt()
public void setSalt(@Nullable byte[] salt)
salt - used when computing the IDpublic void setSalt(@Nullable String salt)
salt - used when computing the ID@Nullable public ComputedPersistentIdGenerationStrategy.Encoding getEncoding()
public void setEncoding(@Nonnull ComputedPersistentIdGenerationStrategy.Encoding enc)
enc - encodingpublic void setAlgorithm(@Nonnull@NotEmpty String alg)
alg - JCE message digest algorithmprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractPersistentIdDataConnectorComponentInitializationExceptionprotected void doDestroy()
doDestroy in class net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin<Map<String,IdPAttribute>>@Nullable protected Map<String,IdPAttribute> doDataConnectorResolve(@Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.