Class TokenVerifier (1.25.0)

public class TokenVerifier

Handle verification of Google-signed JWT tokens.

Inheritance

java.lang.Object > TokenVerifier

Static Methods

newBuilder()

public static TokenVerifier.Builder newBuilder()
Returns
Type Description
TokenVerifier.Builder

Methods

verify(String token)

public JsonWebSignature verify(String token)

Verify an encoded JWT token.

Parameter
Name Description
token String

encoded JWT token

Returns
Type Description
com.google.api.client.json.webtoken.JsonWebSignature

the parsed JsonWebSignature instance for additional validation if necessary

Exceptions
Type Description
TokenVerifier.VerificationException

thrown if any verification fails