Class CredentialMetadataValueResolver
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.plugin.oidc.op.metadata.impl.CredentialMetadataValueResolver
- All Implemented Interfaces:
MetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class CredentialMetadataValueResolver
extends AbstractIdentifiableInitializableComponent
implements MetadataValueResolver
An implementation of
MetadataValueResolver that converts public parts of the attached
Credential to the value.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jose.jwk.JWKparseJwkCredential(Credential credential) Set the credential to be resolved as JSON.resolve(ProfileRequestContext profileRequestContext) resolveSingle(ProfileRequestContext profileRequestContext) voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.
-
-
Constructor Details
-
CredentialMetadataValueResolver
public CredentialMetadataValueResolver()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
parseJwkCredential
Set the credential to be resolved as JSON.- Parameters:
credential- What to set- Returns:
- the JWK
-
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
-