Class StoredPersistentIdDecoder
- 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.StoredPersistentIdDecoder
-
- All Implemented Interfaces:
NameIDDecoder,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class StoredPersistentIdDecoder extends AbstractIdentifiableInitializableComponent implements NameIDDecoder
An abstract decoder which contains the logic to decode SAML persistent IDs that are managed with aDurablePairwiseIdStore.
-
-
Field Summary
Fields Modifier and Type Field Description private DataSourcedataSourceA DataSource to auto-provision aJDBCPairwiseIdStoreinstance.private org.slf4j.LoggerlogClass logger.private DurablePairwiseIdStorepidStoreUpdated version of persistent identifier data store layer.
-
Constructor Summary
Constructors Constructor Description StoredPersistentIdDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecode(SubjectCanonicalizationContext c14nContext, NameID nameID)protected voiddoInitialize()voidsetDataSource(DataSource source)Set a data source to inject into an auto-provisioned instance ofJDBCPairwiseIdStoreto use as the store.voidsetPersistentIdStore(DurablePairwiseIdStore store)Set aDurablePairwiseIdStoreto 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.
-
pidStore
@NonnullAfterInit private DurablePairwiseIdStore pidStore
Updated version of persistent identifier data store layer.
-
dataSource
@Nullable private DataSource dataSource
A DataSource to auto-provision aJDBCPairwiseIdStoreinstance.
-
-
Method Detail
-
setPersistentIdStore
public void setPersistentIdStore(@Nullable DurablePairwiseIdStore store)Set aDurablePairwiseIdStoreto use.- Parameters:
store- the id store
-
setDataSource
public void setDataSource(@Nullable DataSource source)Set a data source to inject into an auto-provisioned instance ofJDBCPairwiseIdStoreto use as the store.- Parameters:
source- data source
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
decode
@Nonnull @NotEmpty public String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull NameID nameID) throws NameDecoderException
- Specified by:
decodein interfaceNameIDDecoder- Throws:
NameDecoderException
-
-