Class AuthzEndpointRequestParser

java.lang.Object
org.keycloak.protocol.oidc.endpoints.request.AuthzEndpointRequestParser
Direct Known Subclasses:
AuthzEndpointParParser, AuthzEndpointQueryStringParser, AuthzEndpointRequestObjectParser

public abstract class AuthzEndpointRequestParser extends Object
Author:
Marek Posolda
  • Field Details

    • ADDITIONAL_REQ_PARAMS_MAX_MUMBER

      public static final int ADDITIONAL_REQ_PARAMS_MAX_MUMBER
      Max number of additional req params copied into client session note to prevent DoS attacks
      See Also:
    • ADDITIONAL_REQ_PARAMS_MAX_SIZE

      public static final int ADDITIONAL_REQ_PARAMS_MAX_SIZE
      Max size of additional req param value copied into client session note to prevent DoS attacks - params with longer value are ignored
      See Also:
    • AUTHZ_REQUEST_OBJECT

      public static final String AUTHZ_REQUEST_OBJECT
      See Also:
    • AUTHZ_REQUEST_OBJECT_ENCRYPTED

      public static final String AUTHZ_REQUEST_OBJECT_ENCRYPTED
      See Also:
    • KNOWN_REQ_PARAMS

      public static final Set<String> KNOWN_REQ_PARAMS
      Set of known protocol GET params not to be stored into additionalReqParams}
  • Constructor Details

    • AuthzEndpointRequestParser

      public AuthzEndpointRequestParser()
  • Method Details

    • parseRequest

      public void parseRequest(AuthorizationEndpointRequest request)
    • validateResponseTypeParameter

      protected void validateResponseTypeParameter(String responseTypeParameter, AuthorizationEndpointRequest request)
    • extractAdditionalReqParams

      protected void extractAdditionalReqParams(Map<String,String> additionalReqParams)
    • replaceIfNotNull

      protected <T> T replaceIfNotNull(T previousVal, T newVal)
    • getParameter

      protected abstract String getParameter(String paramName)
    • getIntParameter

      protected abstract Integer getIntParameter(String paramName)
    • keySet

      protected abstract Set<String> keySet()