Class AlgorithmInfoMetadataValueResolver
- 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.plugin.oidc.op.metadata.impl.AlgorithmInfoMetadataValueResolver
-
- All Implemented Interfaces:
MetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class AlgorithmInfoMetadataValueResolver extends AbstractIdentifiableInitializableComponent implements MetadataValueResolver
AMetadataValueResolverfor resolving signing/encryption algorithm information from the currentSecurityConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext>relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.private booleanresolveEncryptionAlgsWhether to resolve data and key transport encryption algorithms.private booleanresolveKeyTransportEncAlgsWhether to resolve key transport encryption algorithms.
-
Constructor Summary
Constructors Constructor Description AlgorithmInfoMetadataValueResolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Object>resolve(ProfileRequestContext profileRequestContext)ObjectresolveSingle(ProfileRequestContext profileRequestContext)voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.voidsetResolveEncryptionAlgs(boolean flag)Set whether to resolve data encryption algorithms.voidsetResolveKeyTransportEncAlgs(boolean flag)Set whether to resolve key transport algorithms.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, 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
private final org.slf4j.Logger log
Class logger.
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
resolveEncryptionAlgs
private boolean resolveEncryptionAlgs
Whether to resolve data and key transport encryption algorithms. Defaults to false, when signature algorithms are resolved.
-
resolveKeyTransportEncAlgs
private boolean resolveKeyTransportEncAlgs
Whether to resolve key transport encryption algorithms. Defaults to false, when data encryption algorithms are resolved. This flag is only used when resolveEncryptionAlgs is enabled.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
setResolveEncryptionAlgs
public void setResolveEncryptionAlgs(boolean flag)
Set whether to resolve data encryption algorithms. When set to false, signature algorithms are resolved.- Parameters:
flag- What to set.
-
setResolveKeyTransportEncAlgs
public void setResolveKeyTransportEncAlgs(boolean flag)
Set whether to resolve key transport algorithms. Defaults to false, when data encryption algorithms are resolved. In any case, resolveEncryptionAlgs must be enabled.- Parameters:
flag- What to set.
-
resolve
public Iterable<Object> resolve(ProfileRequestContext profileRequestContext) throws ResolverException
- Specified by:
resolvein interfaceResolver<Object,ProfileRequestContext>- Throws:
ResolverException
-
resolveSingle
public Object resolveSingle(@Nullable ProfileRequestContext profileRequestContext) throws ResolverException
- Specified by:
resolveSinglein interfaceResolver<Object,ProfileRequestContext>- Throws:
ResolverException
-
-