Package org.keycloak.adapters.undertow
Class KeycloakUndertowAccount
- java.lang.Object
-
- org.keycloak.adapters.undertow.KeycloakUndertowAccount
-
- All Implemented Interfaces:
io.undertow.security.idm.Account,Serializable,OidcKeycloakAccount,KeycloakAccount
public class KeycloakUndertowAccount extends Object implements io.undertow.security.idm.Account, Serializable, OidcKeycloakAccount
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>accountRolesprotected static org.jboss.logging.Loggerlogprotected KeycloakPrincipal<RefreshableKeycloakSecurityContext>principal
-
Constructor Summary
Constructors Constructor Description KeycloakUndertowAccount(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckActive()booleanequals(Object other)RefreshableKeycloakSecurityContextgetKeycloakSecurityContext()PrincipalgetPrincipal()Set<String>getRoles()inthashCode()voidsetCurrentRequestInfo(KeycloakDeployment deployment, AdapterTokenStore tokenStore)protected voidsetRoles(RefreshableKeycloakSecurityContext session)
-
-
-
Field Detail
-
log
protected static org.jboss.logging.Logger log
-
principal
protected KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal
-
-
Constructor Detail
-
KeycloakUndertowAccount
public KeycloakUndertowAccount(KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal)
-
-
Method Detail
-
setRoles
protected void setRoles(RefreshableKeycloakSecurityContext session)
-
getPrincipal
public Principal getPrincipal()
- Specified by:
getPrincipalin interfaceio.undertow.security.idm.Account- Specified by:
getPrincipalin interfaceKeycloakAccount
-
getRoles
public Set<String> getRoles()
- Specified by:
getRolesin interfaceio.undertow.security.idm.Account- Specified by:
getRolesin interfaceKeycloakAccount
-
getKeycloakSecurityContext
public RefreshableKeycloakSecurityContext getKeycloakSecurityContext()
- Specified by:
getKeycloakSecurityContextin interfaceOidcKeycloakAccount
-
setCurrentRequestInfo
public void setCurrentRequestInfo(KeycloakDeployment deployment, AdapterTokenStore tokenStore)
-
checkActive
public boolean checkActive()
-
-