| Constructor and Description |
|---|
NimbusJwtParser() |
NimbusJwtParser(Provider provider) |
| 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. |
public NimbusJwtParser()
public NimbusJwtParser(Provider provider)
public VerifiableJwt parse(String serializedJwt) throws JwtParseException, UnsupportedAlgorithmException
JwtParserString, and returns a verifiable JWT object without
verifying its signature or validating its claims. All the required headers and claims must be present.parse in interface JwtParserserializedJwt - 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 recognisedpublic Optional<String> determineUnverifiedIssuer(String serializedJwt)
JwtParserdetermineUnverifiedIssuer in interface JwtParserserializedJwt - a JSON Web TokenCopyright © 2017 Atlassian. All rights reserved.