public interface JwtValidator
Jwt token.| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
determineUnverifiedIssuer(String serializedJwt)
Extracts the issuer, if at all possible, from the claims section by parsing the given serialized JWT.
|
Jwt |
readAndValidate(String serializedJwt)
|
Jwt readAndValidate(String serializedJwt) throws InvalidTokenException, CannotRetrieveKeyException
String, verifies its signature, validates its claims and on success
returns the decoded Jwt.serializedJwt - a JSON Web TokenJwtInvalidTokenException - if the JWT string was malformed (see subclasses)CannotRetrieveKeyException - if the public key to verify the signature of the JWT can't be retrievedOptional<String> determineUnverifiedIssuer(String serializedJwt)
serializedJwt - a JSON Web TokenCopyright © 2017 Atlassian. All rights reserved.