public interface JwtParser
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
determineUnverifiedIssuer(String serializedJwt)
Extracts the issuer, if at all possible, from the claims section of the given serialized JWT.
|
VerifiableJwt |
parse(String serializedJwt)
Parses the encoded JWT message from
String, and returns a verifiable JWT object without
verifying its signature or validating its claims. |
VerifiableJwt parse(String serializedJwt) throws JwtParseException, UnsupportedAlgorithmException
String, and returns a verifiable JWT object without
verifying its signature or validating its claims. All the required headers and claims must be present.serializedJwt - a JSON Web TokenVerifiableJwt that has all the required claims and headersJwtParseException - if the JWT string was malformed (see subclasses)UnsupportedAlgorithmException - if the signature algorithm is not recognisedOptional<String> determineUnverifiedIssuer(String serializedJwt)
serializedJwt - a JSON Web TokenCopyright © 2017 Atlassian. All rights reserved.