public class KeycloakAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
implements org.springframework.security.core.Authentication
AuthenticationManager.authenticate(Authentication)
.Constructor and Description |
---|
KeycloakAuthenticationToken(KeycloakAccount account,
boolean interactive)
Creates a new, unauthenticated Keycloak security token for the given account.
|
KeycloakAuthenticationToken(KeycloakAccount account,
boolean interactive,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
Modifier and Type | Method and Description |
---|---|
OidcKeycloakAccount |
getAccount() |
Object |
getCredentials() |
Object |
getPrincipal() |
boolean |
isInteractive() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public KeycloakAuthenticationToken(KeycloakAccount account, boolean interactive)
public KeycloakAuthenticationToken(KeycloakAccount account, boolean interactive, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public OidcKeycloakAccount getAccount()
public boolean isInteractive()
Copyright © 2021 JBoss by Red Hat. All rights reserved.