public class JWTBearerAssertionAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
Constructor and Description |
---|
JWTBearerAssertionAuthenticationToken(com.nimbusds.jwt.JWT jwt)
Create an unauthenticated token with the given subject and jwt
|
JWTBearerAssertionAuthenticationToken(com.nimbusds.jwt.JWT jwt,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Create an authenticated token with the given clientID, jwt, and authorities set
|
Modifier and Type | Method and Description |
---|---|
void |
eraseCredentials()
Clear out the JWT that this token holds.
|
Object |
getCredentials() |
com.nimbusds.jwt.JWT |
getJwt() |
Object |
getPrincipal() |
void |
setJwt(com.nimbusds.jwt.JWT jwt) |
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public JWTBearerAssertionAuthenticationToken(com.nimbusds.jwt.JWT jwt)
subject
- jwt
- public JWTBearerAssertionAuthenticationToken(com.nimbusds.jwt.JWT jwt, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
subject
- jwt
- authorities
- public Object getCredentials()
public Object getPrincipal()
public com.nimbusds.jwt.JWT getJwt()
public void setJwt(com.nimbusds.jwt.JWT jwt)
jwt
- the jwt to setpublic void eraseCredentials()
eraseCredentials
in interface org.springframework.security.core.CredentialsContainer
eraseCredentials
in class org.springframework.security.authentication.AbstractAuthenticationToken
Copyright © 2018. All rights reserved.