Class HTTPPostAuthnRequestEncoder

    • Field Detail

      • log

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

        @Nullable
        private org.apache.velocity.app.VelocityEngine velocityEngine
        Velocity engine used to evaluate the template when using FORM POST response mode.
      • velocityTemplateId

        @Nonnull
        @NotEmpty
        private String velocityTemplateId
        ID of the Velocity template used when using FORM POST response mode.
    • Constructor Detail

      • HTTPPostAuthnRequestEncoder

        public HTTPPostAuthnRequestEncoder()
    • Method Detail

      • setVelocityTemplateId

        public void setVelocityTemplateId​(@Nonnull @NotEmpty
                                          String newVelocityTemplateId)
        Set the Velocity template id.

        Defaults to DEFAULT_TEMPLATE_ID.

        Parameters:
        newVelocityTemplateId - the new Velocity template id
      • setVelocityEngine

        public void setVelocityEngine​(@Nonnull
                                      org.apache.velocity.app.VelocityEngine newVelocityEngine)
        Set the VelocityEngine instance.
        Parameters:
        newVelocityEngine - the new VelocityEngine instane
      • doPostEncode

        private org.apache.velocity.VelocityContext doPostEncode​(@Nonnull
                                                                 OIDCAuthenticationRequest request)
        Construct form POST.
        Parameters:
        request - the authentication request.
        Returns:
        response message as velocity context.