Package org.wildfly.security.http.oidc
Class RequestAuthenticator
- java.lang.Object
-
- org.wildfly.security.http.oidc.RequestAuthenticator
-
public class RequestAuthenticator extends Object
- Author:
- Pedro Igor, Farah Juma
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthChallengechallengeprotected OidcClientConfigurationdeploymentprotected OidcHttpFacadefacadeprotected intsslRedirectPort
-
Constructor Summary
Constructors Constructor Description RequestAuthenticator(OidcHttpFacade facade, OidcClientConfiguration deployment, int sslRedirectPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Oidc.AuthOutcomeauthenticate()protected StringchangeHttpSessionId(boolean create)protected voidcompleteAuthentication(BearerTokenRequestAuthenticator bearer)protected voidcompleteAuthentication(OidcRequestAuthenticator oidc)protected voidcompleteBearerAuthentication(OidcPrincipal<RefreshableOidcSecurityContext> principal)protected voidcompleteOidcAuthentication(OidcPrincipal<RefreshableOidcSecurityContext> principal)protected OidcRequestAuthenticatorcreateOidcAuthenticator()private Oidc.AuthOutcomedoAuthenticate()AuthChallengegetChallenge()protected booleanisAutodetectedBearerOnly()protected booleanverifySSL()
-
-
-
Field Detail
-
facade
protected OidcHttpFacade facade
-
challenge
protected AuthChallenge challenge
-
deployment
protected OidcClientConfiguration deployment
-
sslRedirectPort
protected int sslRedirectPort
-
-
Constructor Detail
-
RequestAuthenticator
public RequestAuthenticator(OidcHttpFacade facade, OidcClientConfiguration deployment, int sslRedirectPort)
-
-
Method Detail
-
authenticate
public Oidc.AuthOutcome authenticate()
-
createOidcAuthenticator
protected OidcRequestAuthenticator createOidcAuthenticator()
-
completeOidcAuthentication
protected void completeOidcAuthentication(OidcPrincipal<RefreshableOidcSecurityContext> principal)
-
completeBearerAuthentication
protected void completeBearerAuthentication(OidcPrincipal<RefreshableOidcSecurityContext> principal)
-
changeHttpSessionId
protected String changeHttpSessionId(boolean create)
-
getChallenge
public AuthChallenge getChallenge()
-
doAuthenticate
private Oidc.AuthOutcome doAuthenticate()
-
verifySSL
protected boolean verifySSL()
-
completeAuthentication
protected void completeAuthentication(OidcRequestAuthenticator oidc)
-
completeAuthentication
protected void completeAuthentication(BearerTokenRequestAuthenticator bearer)
-
isAutodetectedBearerOnly
protected boolean isAutodetectedBearerOnly()
-
-