Class OpenIdConnectAccessTokenAuthentication
java.lang.Object
com.aquima.web.boot.security.openid.OpenIdConnectAccessTokenAuthentication
- All Implemented Interfaces:
OpenIdConnectAuthentication
,com.blueriq.component.api.security.BlueriqAuthentication
,Serializable
,Principal
,org.springframework.security.core.Authentication
- Direct Known Subclasses:
OpenIdConnectUserAuthenticationImpl
public class OpenIdConnectAccessTokenAuthentication
extends Object
implements OpenIdConnectAuthentication
Represents a user that was authenticated using OpenID Connect authorization code or password grants.
- Since:
- 11.3
- Author:
- Timea Popa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
The access token in encoded form.getName()
getRoles()
getTeams()
boolean
boolean
boolean
void
setAuthenticated
(boolean authenticated) toString()
-
Constructor Details
-
OpenIdConnectAccessTokenAuthentication
-
-
Method Details
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.Authentication
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetails
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Throws:
IllegalArgumentException
-
getName
-
getRoles
- Specified by:
getRoles
in interfacecom.blueriq.component.api.security.BlueriqAuthentication
-
getTeams
- Specified by:
getTeams
in interfacecom.blueriq.component.api.security.BlueriqAuthentication
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymous
in interfacecom.blueriq.component.api.security.BlueriqAuthentication
-
isAutomatic
public boolean isAutomatic()- Specified by:
isAutomatic
in interfacecom.blueriq.component.api.security.BlueriqAuthentication
-
getClaimNames
- Specified by:
getClaimNames
in interfacecom.blueriq.component.api.security.BlueriqAuthentication
-
getClaim
- Specified by:
getClaim
in interfacecom.blueriq.component.api.security.BlueriqAuthentication
-
getEncodedAccessToken
Description copied from interface:OpenIdConnectAuthentication
The access token in encoded form. This form is suitable for use in an Authorization: Bearer header.- Specified by:
getEncodedAccessToken
in interfaceOpenIdConnectAuthentication
- Returns:
- the encoded access token
-
toString
-