Package com.google.auth.oauth2
Class TokenVerifier
java.lang.Object
com.google.auth.oauth2.TokenVerifier
Handle verification of Google-signed JWT tokens.
- Since:
- 0.21.0
- Author:
- Jeff Ching
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classCustom exception for wrapping all verification errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenVerifier.Buildercom.google.api.client.json.webtoken.JsonWebSignatureVerify an encoded JWT token.
-
Method Details
-
newBuilder
-
verify
public com.google.api.client.json.webtoken.JsonWebSignature verify(String token) throws TokenVerifier.VerificationException Verify an encoded JWT token.- Parameters:
token- encoded JWT token- Returns:
- the parsed JsonWebSignature instance for additional validation if necessary
- Throws:
TokenVerifier.VerificationException- thrown if any verification fails
-