Class OpenIdConnectServiceAuthenticationToken
- java.lang.Object
-
- com.aquima.web.boot.security.openid.OpenIdConnectServiceAuthenticationToken
-
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
public class OpenIdConnectServiceAuthenticationToken extends Object implements org.springframework.security.core.Authentication
Represents an authentication request using the OpenID Connect client credentials grant.- Since:
- 11.6
- Author:
- Petru Galanton
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenIdConnectServiceAuthenticationToken(String accessToken, int expiresIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
long
getAccessTokenExpiresAt()
Collection<? extends org.springframework.security.core.GrantedAuthority>
getAuthorities()
Object
getCredentials()
Object
getDetails()
String
getName()
Object
getPrincipal()
boolean
isAuthenticated()
void
setAuthenticated(boolean isAuthenticated)
-
-
-
Constructor Detail
-
OpenIdConnectServiceAuthenticationToken
public OpenIdConnectServiceAuthenticationToken(String accessToken, int expiresIn)
-
-
Method Detail
-
getAccessToken
public String getAccessToken()
-
getAccessTokenExpiresAt
public long getAccessTokenExpiresAt()
-
getAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.Authentication
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getDetails
public Object getDetails()
- Specified by:
getDetails
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Throws:
IllegalArgumentException
-
-