Class CredentialMetadataValueResolver
- 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.CredentialMetadataValueResolver
-
- All Implemented Interfaces:
MetadataValueResolver,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,Resolver<Object,ProfileRequestContext>
public class CredentialMetadataValueResolver extends AbstractIdentifiableInitializableComponent implements MetadataValueResolver
An implementation ofMetadataValueResolverthat converts public parts of the attachedCredentialto the value.
-
-
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.
-
Constructor Summary
Constructors Constructor Description CredentialMetadataValueResolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jose.jwk.JWKparseJwkCredential(Credential credential)Set the credential to be resolved as JSON.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.-
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.
-
-
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
-
parseJwkCredential
public com.nimbusds.jose.jwk.JWK parseJwkCredential(@Nonnull Credential credential)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(@Nonnull ProfileRequestContext profileRequestContext) throws ResolverException
- Specified by:
resolveSinglein interfaceResolver<Object,ProfileRequestContext>- Throws:
ResolverException
-
-