Class AuthzEndpointRequestParser
java.lang.Object
org.keycloak.protocol.oidc.endpoints.request.AuthzEndpointRequestParser
- Direct Known Subclasses:
AuthzEndpointParParser
,AuthzEndpointQueryStringParser
,AuthzEndpointRequestObjectParser
- Author:
- Marek Posolda
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Max number of additional req params copied into client session note to prevent DoS attacksstatic final int
Max size of additional req param value copied into client session note to prevent DoS attacks - params with longer value are ignoredstatic final String
static final String
Set of known protocol GET params not to be stored into additionalReqParams} -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
extractAdditionalReqParams
(Map<String, String> additionalReqParams) protected abstract Integer
getIntParameter
(String paramName) protected abstract String
getParameter
(String paramName) keySet()
void
parseRequest
(AuthorizationEndpointRequest request) protected <T> T
replaceIfNotNull
(T previousVal, T newVal) protected void
validateResponseTypeParameter
(String responseTypeParameter, AuthorizationEndpointRequest request)
-
Field Details
-
ADDITIONAL_REQ_PARAMS_MAX_MUMBER
public static final int ADDITIONAL_REQ_PARAMS_MAX_MUMBERMax 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_SIZEMax 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
- See Also:
-
AUTHZ_REQUEST_OBJECT_ENCRYPTED
- See Also:
-
KNOWN_REQ_PARAMS
Set of known protocol GET params not to be stored into additionalReqParams}
-
-
Constructor Details
-
AuthzEndpointRequestParser
public AuthzEndpointRequestParser()
-
-
Method Details
-
parseRequest
-
validateResponseTypeParameter
protected void validateResponseTypeParameter(String responseTypeParameter, AuthorizationEndpointRequest request) -
extractAdditionalReqParams
-
replaceIfNotNull
protected <T> T replaceIfNotNull(T previousVal, T newVal) -
getParameter
-
getIntParameter
-
keySet
-