public class GbifAuthenticationToken extends Object implements GbifAuthentication
Constructor and Description |
---|
GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal) |
GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
String jwtToken) |
GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal,
String authenticationScheme) |
GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal,
String authenticationScheme,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
Modifier and Type | Method and Description |
---|---|
static GbifAuthentication |
anonymous() |
String |
getAuthenticationScheme() |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getJwtToken() |
String |
getName() |
org.springframework.security.core.userdetails.UserDetails |
getPrincipal() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
public GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal)
public GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal, String authenticationScheme)
public GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal, String authenticationScheme, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public GbifAuthenticationToken(org.springframework.security.core.userdetails.UserDetails principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, String jwtToken)
public static GbifAuthentication anonymous()
public String getAuthenticationScheme()
getAuthenticationScheme
in interface GbifAuthentication
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.Authentication
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public org.springframework.security.core.userdetails.UserDetails getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean isAuthenticated)
setAuthenticated
in interface org.springframework.security.core.Authentication
public String getJwtToken()
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.