Class InitializeOAuth2ClientAuthenticationContext

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • oauth2ClientAuthenticationContextLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.oidc.authn.context.OAuth2ClientAuthenticationContext> oauth2ClientAuthenticationContextLookupStrategy
        The strategy used to lookup or create the OAuth2ClientAuthenticationContext for storing the client authentication.
      • oauth2ClientAuthenticationContext

        @Nullable
        private net.shibboleth.oidc.authn.context.OAuth2ClientAuthenticationContext oauth2ClientAuthenticationContext
        The stashed OAuth2 client authentication context.
      • relyingPartyContextLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
        Lookup function for relying party context.
      • profileConfiguration

        @Nullable
        private net.shibboleth.oidc.profile.config.OIDCAuthenticationRelyingPartyProfileConfiguration profileConfiguration
        Applicable stashed profile configuration.
    • Constructor Detail

      • InitializeOAuth2ClientAuthenticationContext

        public InitializeOAuth2ClientAuthenticationContext()
        Constructor.
    • Method Detail

      • setRelyingPartyContextLookupStrategy

        public void setRelyingPartyContextLookupStrategy​(@Nonnull
                                                         Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
        Set lookup strategy for relying party context.
        Parameters:
        strategy - lookup strategy
      • setOAuth2ClientAuthenticationContextLookupStrategy

        public void setOAuth2ClientAuthenticationContextLookupStrategy​(@Nonnull
                                                                       Function<ProfileRequestContext,​net.shibboleth.oidc.authn.context.OAuth2ClientAuthenticationContext> strgy)
        Set the strategy to lookup the OAuth2ClientAuthenticationContext from the ProfileRequestContext.
        Parameters:
        strgy - the strategy.
      • constructClientAuthentication

        @Nullable
        protected com.nimbusds.oauth2.sdk.auth.ClientAuthentication constructClientAuthentication​(@Nonnull
                                                                                                  String clientId,
                                                                                                  @Nonnull
                                                                                                  String tokenEndpointAuthMethod,
                                                                                                  @Nonnull
                                                                                                  net.shibboleth.oidc.security.credential.ClientSecretCredential clientCredential)
        Construct the client authentication from the given client authentication record.
        Parameters:
        clientId - the client_id
        tokenEndpointAuthMethod - the token endpoint authentication method
        clientCredential - the client credential
        Returns:
        the constructed client authentication
      • convertSecretKeyToString

        @Nullable
        private String convertSecretKeyToString​(@Nullable
                                                SecretKey key)
        Convert the encoded byte array representing the secret into a UTF-8 String.
        Parameters:
        key - the key to convert
        Returns:
        the UTF-8 encoded string value of the secret.