Class ValidateClientAuthenticationType

    • 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 return OIDCMetadataContext.
      • tokenEndpointAuthMethodsLookupStrategy

        @Nullable
        private Function<ProfileRequestContext,​Set<com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod>> tokenEndpointAuthMethodsLookupStrategy
        Strategy to obtain enabled token endpoint authentication methods.
      • oidcMetadataContext

        @Nullable
        private net.shibboleth.oidc.metadata.context.OIDCMetadataContext oidcMetadataContext
        The attached OIDC metadata context.
      • clientAuthentication

        @Nullable
        private com.nimbusds.oauth2.sdk.auth.ClientAuthentication clientAuthentication
        The extracted client authentication information.
      • enabledMethods

        @Nullable
        @NonnullElements
        private Set<com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod> enabledMethods
        Enabled client authn methods.
    • Constructor Detail

      • ValidateClientAuthenticationType

        public ValidateClientAuthenticationType()
        Constructor.
    • Method Detail

      • setOIDCMetadataContextLookupStrategy

        public void setOIDCMetadataContextLookupStrategy​(@Nonnull
                                                         Function<ProfileRequestContext,​net.shibboleth.oidc.metadata.context.OIDCMetadataContext> strategy)
        Set the strategy used to return the OIDCMetadataContext.
        Parameters:
        strategy - The lookup strategy.
      • setTokenEndpointAuthMethodsLookupStrategy

        public void setTokenEndpointAuthMethodsLookupStrategy​(@Nonnull
                                                              Function<ProfileRequestContext,​Set<com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod>> strategy)
        Set strategy to obtain enabled token endpoint authentication methods.
        Parameters:
        strategy - What to set.
      • doPreExecute

        protected boolean doPreExecute​(@Nonnull
                                       ProfileRequestContext profileRequestContext,
                                       @Nonnull
                                       net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext)
        Overrides:
        doPreExecute in class net.shibboleth.idp.authn.AbstractAuthenticationAction
      • doExecute

        protected void doExecute​(@Nonnull
                                 ProfileRequestContext profileRequestContext,
                                 @Nonnull
                                 net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext)
        Overrides:
        doExecute in class net.shibboleth.idp.authn.AbstractAuthenticationAction
      • getClientID

        @Nullable
        private String getClientID()
        Parses the client ID from OIDC metadata or client authentication, if exists.
        Returns:
        client ID, or null it it couldn't be found.