Class TokenVerifier (1.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass TokenVerifierHandle verification of Google-signed JWT tokens.
Inherited Members
Static Methods
newBuilder()
publicstaticTokenVerifier.BuildernewBuilder()| Returns | |
|---|---|
| Type | Description |
TokenVerifier.Builder |
|
Methods
verify(String token)
publicJsonWebSignatureverify(Stringtoken)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 |