Class FirebaseTokenValidator

All Implemented Interfaces:<>

public class FirebaseTokenValidator extends Object implements<>
Validates Firebase JWT tokens using the rules presented here at

This validator will check the following claims:

  • iat : Must be in the past
  • aud : Must be the firebase project id
  • auth_time : Must be in the past
  • sub : Must not be empty
  • Constructor Details

    • FirebaseTokenValidator

      public FirebaseTokenValidator(String projectId)
    • FirebaseTokenValidator

      public FirebaseTokenValidator(String projectId, Duration clockSkew)
  • Method Details

    • validate

      public validate( token)
      Specified by:
      validate in interface<>