public class KeycloakUndertowAccount extends Object implements io.undertow.security.idm.Account, Serializable, KeycloakAccount
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
accountRoles |
protected static org.jboss.logging.Logger |
log |
protected KeycloakPrincipal |
principal |
protected RefreshableKeycloakSecurityContext |
session |
Constructor and Description |
---|
KeycloakUndertowAccount(KeycloakPrincipal principal,
RefreshableKeycloakSecurityContext session,
KeycloakDeployment deployment) |
Modifier and Type | Method and Description |
---|---|
RefreshableKeycloakSecurityContext |
getKeycloakSecurityContext() |
Principal |
getPrincipal() |
Set<String> |
getRoles() |
boolean |
isActive() |
void |
setDeployment(KeycloakDeployment deployment) |
protected void |
setRoles(AccessToken accessToken) |
protected static org.jboss.logging.Logger log
protected RefreshableKeycloakSecurityContext session
protected KeycloakPrincipal principal
public KeycloakUndertowAccount(KeycloakPrincipal principal, RefreshableKeycloakSecurityContext session, KeycloakDeployment deployment)
protected void setRoles(AccessToken accessToken)
public Principal getPrincipal()
getPrincipal
in interface io.undertow.security.idm.Account
getPrincipal
in interface KeycloakAccount
public Set<String> getRoles()
getRoles
in interface io.undertow.security.idm.Account
getRoles
in interface KeycloakAccount
public RefreshableKeycloakSecurityContext getKeycloakSecurityContext()
getKeycloakSecurityContext
in interface KeycloakAccount
public void setDeployment(KeycloakDeployment deployment)
public boolean isActive()
Copyright © 2015. All Rights Reserved.