Package org.wildfly.security.http.oidc
Class OidcHttpFacade
- java.lang.Object
-
- org.wildfly.security.http.oidc.OidcHttpFacade
-
public class OidcHttpFacade extends Object
- Author:
- Pedro Igor, Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OidcHttpFacade.Cookie
static interface
OidcHttpFacade.Request
static interface
OidcHttpFacade.Response
-
Field Summary
Fields Modifier and Type Field Description private OidcAccount
account
private CallbackHandler
callbackHandler
private Map<String,String>
headers
private OidcClientContext
oidcClientContext
private HttpServerRequest
request
private Consumer<HttpServerResponse>
responseConsumer
private boolean
restored
private SecurityIdentity
securityIdentity
private OidcTokenStore
tokenStore
-
Constructor Summary
Constructors Constructor Description OidcHttpFacade(HttpServerRequest request, OidcClientContext oidcClientContext, CallbackHandler handler)
-
Method Summary
-
-
-
Field Detail
-
request
private final HttpServerRequest request
-
callbackHandler
private final CallbackHandler callbackHandler
-
tokenStore
private final OidcTokenStore tokenStore
-
oidcClientContext
private final OidcClientContext oidcClientContext
-
responseConsumer
private Consumer<HttpServerResponse> responseConsumer
-
account
private OidcAccount account
-
securityIdentity
private SecurityIdentity securityIdentity
-
restored
private boolean restored
-
-
Constructor Detail
-
OidcHttpFacade
public OidcHttpFacade(HttpServerRequest request, OidcClientContext oidcClientContext, CallbackHandler handler)
-
-
Method Detail
-
authenticationComplete
void authenticationComplete(OidcAccount account, boolean storeToken)
-
authorize
static final SecurityIdentity authorize(CallbackHandler callbackHandler, Principal principal)
-
authenticationComplete
void authenticationComplete()
-
authenticationFailed
void authenticationFailed()
-
noAuthenticationInProgress
void noAuthenticationInProgress()
-
noAuthenticationInProgress
void noAuthenticationInProgress(AuthChallenge challenge)
-
authenticationInProgress
void authenticationInProgress()
-
getScopeIds
Collection<String> getScopeIds(Scope scope)
-
getTokenStore
OidcTokenStore getTokenStore()
-
getOidcClientConfiguration
OidcClientConfiguration getOidcClientConfiguration()
-
createTokenStore
private OidcTokenStore createTokenStore()
-
getRequest
public OidcHttpFacade.Request getRequest()
-
getResponse
public OidcHttpFacade.Response getResponse()
-
getCertificateChain
public Certificate[] getCertificateChain()
-
getSecurityContext
public OidcSecurityContext getSecurityContext()
-
restoreRequest
public boolean restoreRequest()
-
suspendRequest
public void suspendRequest()
-
isAuthorized
public boolean isAuthorized()
-
-