public class OAuth2SessionAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication implementation that is designed for simple presentation of an OAuth2
clientId, and JWT session token.OAuth2SessionAuthenticationProvider,
Serialized Form| Constructor and Description |
|---|
OAuth2SessionAuthenticationToken(OAuth2SessionToken sessionToken,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
This constructor should only be used by
AuthenticationManager or
AuthenticationProvider implementations that are satisfied with producing a
trusted (i.e. |
OAuth2SessionAuthenticationToken(OAuth2SessionToken sessionToken,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
Object principal)
This constructor should only be used by
AuthenticationManager or
AuthenticationProvider implementations that are satisfied with producing a
trusted (i.e. |
OAuth2SessionAuthenticationToken(String clientId,
String tokenValue)
This constructor can be safely used by any code that wishes to create a
OAuth2ClientAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return
false. |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientId()
The OAuth2 client ID.
|
Object |
getCredentials() |
Object |
getPrincipal() |
OAuth2SessionToken |
getToken()
The JWT token from the BLSID-[client_id] session cookie.
|
String |
getTokenValue() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic OAuth2SessionAuthenticationToken(String clientId, String tokenValue)
OAuth2ClientAuthenticationToken, as the AbstractAuthenticationToken.isAuthenticated() will return
false.public OAuth2SessionAuthenticationToken(OAuth2SessionToken sessionToken, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
AuthenticationManager or
AuthenticationProvider implementations that are satisfied with producing a
trusted (i.e. AbstractAuthenticationToken.isAuthenticated() = true) authentication token.authorities - public OAuth2SessionAuthenticationToken(OAuth2SessionToken sessionToken, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Object principal)
AuthenticationManager or
AuthenticationProvider implementations that are satisfied with producing a
trusted (i.e. AbstractAuthenticationToken.isAuthenticated() = true) authentication token.authorities - public String getTokenValue()
public Object getCredentials()
public Object getPrincipal()
public String getClientId()
public OAuth2SessionToken getToken()
Copyright © 2021. All rights reserved.