public class TokenValidation extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
TokenValidation(String token) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkTokenSignature() |
boolean |
checkTokenValidity() |
String |
getAlgorithm() |
List<String> |
getAudience() |
String |
getKeyId() |
List<String> |
getScopes() |
String |
getSignature() |
String |
getSubject() |
UserProfile |
getUser() |
com.auth0.jwt.interfaces.DecodedJWT |
getVerifiedJwt() |
boolean |
isValid() |
boolean |
isValidScope(String scope) |
String |
toString() |
boolean |
validateTokenExpiration() |
boolean |
validateTokenIssuer() |
boolean |
validateTokenKeyId() |
public TokenValidation(String token)
public boolean isValid()
public boolean isValidScope(String scope)
public boolean checkTokenValidity()
public UserProfile getUser()
public String getKeyId()
public String getSubject()
public String getAlgorithm()
public String getSignature()
public boolean checkTokenSignature()
throws IllegalArgumentException,
CertificateException,
InvalidKeySpecException,
NoSuchAlgorithmException,
IOException
public boolean validateTokenExpiration()
public boolean validateTokenIssuer()
public boolean validateTokenKeyId()
public com.auth0.jwt.interfaces.DecodedJWT getVerifiedJwt()
Copyright © 2018. All rights reserved.