public class OIDCAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
Constructor and Description |
---|
OIDCAuthenticationToken(String subject,
String issuer,
UserInfo userInfo,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
com.nimbusds.jwt.JWT idToken,
String accessTokenValue,
String refreshTokenValue)
Constructs OIDCAuthenticationToken with a full set of authorities, marking this as authenticated.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessTokenValue() |
Object |
getCredentials() |
com.nimbusds.jwt.JWT |
getIdToken() |
String |
getIssuer() |
Object |
getPrincipal()
Get the principal of this object, an immutable map of the subject and issuer.
|
String |
getRefreshTokenValue() |
String |
getSub() |
UserInfo |
getUserInfo() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public OIDCAuthenticationToken(String subject, String issuer, UserInfo userInfo, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, com.nimbusds.jwt.JWT idToken, String accessTokenValue, String refreshTokenValue)
subject
- authorities
- principal
- idToken
- public Object getCredentials()
public Object getPrincipal()
public com.nimbusds.jwt.JWT getIdToken()
public String getAccessTokenValue()
public String getRefreshTokenValue()
public UserInfo getUserInfo()
Copyright © 2018. All rights reserved.