Class AuthorizationEndpointChecker
- java.lang.Object
-
- org.keycloak.protocol.oidc.endpoints.AuthorizationEndpointChecker
-
public class AuthorizationEndpointChecker extends Object
Implements some checks typical for OIDC Authorization Endpoint. Useful to consolidate various checks on single place to avoid duplicated code logic in different contexts (OIDC Authorization Endpoint triggered from browser, PAR)- Author:
- Marek Posolda
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAuthorizationEndpointChecker.AuthorizationCheckException
-
Constructor Summary
Constructors Constructor Description AuthorizationEndpointChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInvalidRequestMessage()voidcheckOIDCParams()voidcheckOIDCRequest()voidcheckParRequired()voidcheckPKCEParams()voidcheckRedirectUri()voidcheckResponseType()voidcheckValidScope()AuthorizationEndpointCheckerclient(ClientModel client)AuthorizationEndpointCheckerevent(EventBuilder event)OIDCResponseModegetParsedResponseMode()OIDCResponseTypegetParsedResponseType()StringgetRedirectUri()booleanisInvalidResponseType(AuthorizationEndpointChecker.AuthorizationCheckException ex)AuthorizationEndpointCheckerparams(javax.ws.rs.core.MultivaluedMap<String,String> params)AuthorizationEndpointCheckerrealm(RealmModel realm)AuthorizationEndpointCheckerrequest(AuthorizationEndpointRequest request)AuthorizationEndpointCheckersession(KeycloakSession session)
-
-
-
Method Detail
-
event
public AuthorizationEndpointChecker event(EventBuilder event)
-
request
public AuthorizationEndpointChecker request(AuthorizationEndpointRequest request)
-
session
public AuthorizationEndpointChecker session(KeycloakSession session)
-
client
public AuthorizationEndpointChecker client(ClientModel client)
-
realm
public AuthorizationEndpointChecker realm(RealmModel realm)
-
params
public AuthorizationEndpointChecker params(javax.ws.rs.core.MultivaluedMap<String,String> params)
-
getRedirectUri
public String getRedirectUri()
-
getParsedResponseType
public OIDCResponseType getParsedResponseType()
-
getParsedResponseMode
public OIDCResponseMode getParsedResponseMode()
-
checkRedirectUri
public void checkRedirectUri() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
checkResponseType
public void checkResponseType() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
isInvalidResponseType
public boolean isInvalidResponseType(AuthorizationEndpointChecker.AuthorizationCheckException ex)
-
checkInvalidRequestMessage
public void checkInvalidRequestMessage() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
checkOIDCRequest
public void checkOIDCRequest()
-
checkValidScope
public void checkValidScope() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
checkOIDCParams
public void checkOIDCParams() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
checkPKCEParams
public void checkPKCEParams() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
checkParRequired
public void checkParRequired() throws AuthorizationEndpointChecker.AuthorizationCheckException
-
-