public abstract class RequestAuthenticator extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthChallenge |
challenge |
protected KeycloakDeployment |
deployment |
protected HttpFacade |
facade |
protected static org.jboss.logging.Logger |
log |
protected int |
sslRedirectPort |
Constructor and Description |
---|
RequestAuthenticator(HttpFacade facade,
KeycloakDeployment deployment) |
RequestAuthenticator(HttpFacade facade,
KeycloakDeployment deployment,
int sslRedirectPort) |
Modifier and Type | Method and Description |
---|---|
AuthOutcome |
authenticate() |
protected void |
completeAuthentication(BearerTokenRequestAuthenticator bearer) |
protected void |
completeAuthentication(OAuthRequestAuthenticator oauth) |
protected abstract void |
completeBearerAuthentication(KeycloakPrincipal principal,
RefreshableKeycloakSecurityContext session) |
protected abstract void |
completeOAuthAuthentication(KeycloakPrincipal principal,
RefreshableKeycloakSecurityContext session) |
protected BearerTokenRequestAuthenticator |
createBearerTokenAuthenticator() |
protected abstract OAuthRequestAuthenticator |
createOAuthAuthenticator() |
AuthChallenge |
getChallenge() |
protected abstract boolean |
isCached() |
protected boolean |
verifySSL() |
protected static org.jboss.logging.Logger log
protected HttpFacade facade
protected KeycloakDeployment deployment
protected AuthChallenge challenge
protected int sslRedirectPort
public RequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment, int sslRedirectPort)
public RequestAuthenticator(HttpFacade facade, KeycloakDeployment deployment)
public AuthChallenge getChallenge()
public AuthOutcome authenticate()
protected boolean verifySSL()
protected abstract OAuthRequestAuthenticator createOAuthAuthenticator()
protected BearerTokenRequestAuthenticator createBearerTokenAuthenticator()
protected void completeAuthentication(OAuthRequestAuthenticator oauth)
protected abstract void completeOAuthAuthentication(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)
protected abstract void completeBearerAuthentication(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session)
protected abstract boolean isCached()
protected void completeAuthentication(BearerTokenRequestAuthenticator bearer)
Copyright © 2015. All Rights Reserved.