Class OIDCClientInfoCredentialValidator
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.idp.authn.AbstractCredentialValidator
-
- net.shibboleth.idp.authn.AbstractUsernamePasswordCredentialValidator
-
- net.shibboleth.idp.plugin.oidc.op.authn.impl.OIDCClientInfoCredentialValidator
-
- All Implemented Interfaces:
net.shibboleth.idp.authn.CredentialValidator,net.shibboleth.idp.authn.principal.PrincipalSupportingComponent,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
@ThreadSafeAfterInit public class OIDCClientInfoCredentialValidator extends net.shibboleth.idp.authn.AbstractUsernamePasswordCredentialValidator
A password validator that authenticates against OIDC client metadata (which may itself be emulated via SAML metadata).
-
-
Field Summary
Fields Modifier and Type Field Description private com.nimbusds.openid.connect.sdk.rp.OIDCClientInformationclientInformationClient information.private StringDigesterdigesterDigester for SHA-1.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext>oidcMetadataContextLookupStrategyStrategy that will returnOIDCMetadataContext.
-
Constructor Summary
Constructors Constructor Description OIDCClientInfoCredentialValidator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected SubjectdoValidate(ProfileRequestContext profileRequestContext, net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext, net.shibboleth.idp.authn.context.UsernamePasswordContext usernamePasswordContext, net.shibboleth.idp.authn.CredentialValidator.WarningHandler warningHandler, net.shibboleth.idp.authn.CredentialValidator.ErrorHandler errorHandler)protected SubjectdoValidate(ProfileRequestContext profileRequestContext, net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext, net.shibboleth.idp.authn.CredentialValidator.WarningHandler warningHandler, net.shibboleth.idp.authn.CredentialValidator.ErrorHandler errorHandler)voidsetOidcMetadataContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strategy)Set the strategy used to return theOIDCMetadataContext.-
Methods inherited from class net.shibboleth.idp.authn.AbstractUsernamePasswordCredentialValidator
applyTransforms, populateSubject, removeContextAfterValidation, savePasswordToCredentialSet, setLowercase, setMatchExpression, setRemoveContextAfterValidation, setSavePasswordToCredentialSet, setTransforms, setTrim, setUppercase, setUsernamePasswordContextLookupStrategy
-
Methods inherited from class net.shibboleth.idp.authn.AbstractCredentialValidator
getLogPrefix, getSupportedPrincipals, isAcceptable, populateSubject, setActivationCondition, setId, setSupportedPrincipals, validate
-
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.
-
oidcMetadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> oidcMetadataContextLookupStrategy
Strategy that will returnOIDCMetadataContext.
-
digester
@NonnullAfterInit private StringDigester digester
Digester for SHA-1.
-
clientInformation
@Nullable private com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation clientInformation
Client information.
-
-
Method Detail
-
setOidcMetadataContextLookupStrategy
public void setOidcMetadataContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strategy)Set the strategy used to return theOIDCMetadataContext.- Parameters:
strategy- The lookup strategy.
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
doValidate
protected Subject doValidate(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext, @Nullable net.shibboleth.idp.authn.CredentialValidator.WarningHandler warningHandler, @Nullable net.shibboleth.idp.authn.CredentialValidator.ErrorHandler errorHandler) throws Exception
- Overrides:
doValidatein classnet.shibboleth.idp.authn.AbstractUsernamePasswordCredentialValidator- Throws:
Exception
-
doValidate
@Nullable protected Subject doValidate(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext, @Nonnull net.shibboleth.idp.authn.context.UsernamePasswordContext usernamePasswordContext, @Nullable net.shibboleth.idp.authn.CredentialValidator.WarningHandler warningHandler, @Nullable net.shibboleth.idp.authn.CredentialValidator.ErrorHandler errorHandler) throws Exception
- Specified by:
doValidatein classnet.shibboleth.idp.authn.AbstractUsernamePasswordCredentialValidator- Throws:
Exception
-
-