public class TokenVerifier extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TokenVerifier.Builder |
static class |
TokenVerifier.VerificationException
Custom exception for wrapping all verification errors.
|
Modifier and Type | Method and Description |
---|---|
static TokenVerifier.Builder |
newBuilder() |
com.google.api.client.json.webtoken.JsonWebSignature |
verify(String token)
Verify an encoded JWT token.
|
public static TokenVerifier.Builder newBuilder()
public com.google.api.client.json.webtoken.JsonWebSignature verify(String token) throws TokenVerifier.VerificationException
token
- encoded JWT tokenTokenVerifier.VerificationException
- thrown if any verification failsCopyright © 2023 Google. All rights reserved.