Class BuildAuthenticationErrorResponseFromEvent

    • Field Detail

      • log

        @Nonnull
        private org.slf4j.Logger log
        Class logger.
      • includeIssuerInResponsePredicate

        @Nonnull
        private Predicate<ProfileRequestContext> includeIssuerInResponsePredicate
        Predicate to signal whether or not to include iss-parameter to the response.
      • issuer

        private com.nimbusds.oauth2.sdk.id.Issuer issuer
        Issuer value to included in the response message, if configured to be included.
    • Constructor Detail

      • BuildAuthenticationErrorResponseFromEvent

        public BuildAuthenticationErrorResponseFromEvent()
        Constructor.
    • Method Detail

      • setIssuerLookupStrategy

        public void setIssuerLookupStrategy​(@Nonnull
                                            Function<ProfileRequestContext,​String> strategy)
        Set the strategy used to locate the issuer value to use.
        Parameters:
        strategy - what to set
      • setIncludeIssuerInResponsePredicate

        public void setIncludeIssuerInResponsePredicate​(@Nonnull
                                                        Predicate<ProfileRequestContext> predicate)
        Set the predicate to signal whether or not to include iss-parameter to the response.
        Parameters:
        predicate - what to set
      • buildErrorResponse

        protected com.nimbusds.openid.connect.sdk.AuthenticationErrorResponse buildErrorResponse​(com.nimbusds.oauth2.sdk.ErrorObject error,
                                                                                                 ProfileRequestContext profileRequestContext)
        Method implemented by the extending class to create ErrorResponse.
        Specified by:
        buildErrorResponse in class AbstractBuildErrorResponseFromEvent<com.nimbusds.openid.connect.sdk.AuthenticationErrorResponse>
        Parameters:
        error - error object to build the response from.
        profileRequestContext - profile request context.
        Returns:
        ErrorResponse