Class ResolverServiceClientSecretValueResolver
- 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.oidc.metadata.impl.AbstractClientSecretValueResolver
-
- net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolver
-
- All Implemented Interfaces:
ClientSecretValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<String,CriteriaSet>
public class ResolverServiceClientSecretValueResolver extends AbstractClientSecretValueResolver
A client secret value resolver that fetches the values from the givenAttributeResolverservice. This class builds a newAttributeResolutionContextand sets the client secret reference key value toAttributeResolutionContext.setPrincipal(String)and its related entity ID toAttributeResolutionContext.setAttributeRecipientID(String). The resolution context does not have any parent contexts.
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>attributeIdsThe list of attribute IDs that may contain the resolved client secret values.private org.slf4j.LoggerlogClass logger.private ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver>serviceThe attribute resolver service used for the client secret value resolution.
-
Constructor Summary
Constructors Constructor Description ResolverServiceClientSecretValueResolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDestroy()protected voiddoInitialize()List<String>getAttributeIds()Get the list of attribute IDs that may contain the resolved client secret values.ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver>getAttributeResolver()Get the attribute resolver service used for the client secret value resolution.Iterable<String>resolve(CriteriaSet criteria)StringresolveSingle(CriteriaSet criteria)voidsetAttributeIds(List<String> ids)Set the list of attribute IDs that may contain the resolved client secret values.voidsetAttributeResolver(ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolver)Set the attribute resolver service used for the client secret value resolution.-
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, 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
private final org.slf4j.Logger log
Class logger.
-
service
@NonnullAfterInit private ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> service
The attribute resolver service used for the client secret value resolution.
-
-
Method Detail
-
setAttributeResolver
public void setAttributeResolver(@Nonnull ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolver)Set the attribute resolver service used for the client secret value resolution.- Parameters:
resolver- The attribute resolver service used for the client secret value resolution.
-
getAttributeResolver
@NonnullAfterInit public ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> getAttributeResolver()
Get the attribute resolver service used for the client secret value resolution.- Returns:
- The attribute resolver service used for the client secret value resolution.
-
setAttributeIds
public void setAttributeIds(@Nonnull List<String> ids)Set the list of attribute IDs that may contain the resolved client secret values.- Parameters:
ids- The list of attribute IDs that may contain the resolved client secret values.
-
getAttributeIds
@Nonnull public List<String> getAttributeIds()
Get the list of attribute IDs that may contain the resolved client secret values.- Returns:
- The list of attribute IDs that may contain the resolved client secret values.
-
resolve
@Nonnull public Iterable<String> resolve(@Nonnull CriteriaSet criteria) throws ResolverException
- Throws:
ResolverException
-
resolveSingle
@Nullable public String resolveSingle(@Nonnull CriteriaSet criteria) throws ResolverException
- Throws:
ResolverException
-
doDestroy
protected void doDestroy()
- Overrides:
doDestroyin classAbstractInitializableComponent
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
-