Package com.auth0.utils.tokens
Class IdTokenVerifier.Builder
java.lang.Object
com.auth0.utils.tokens.IdTokenVerifier.Builder
- Enclosing class:
- IdTokenVerifier
Builder class to construct a IdTokenVerifier
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs an IdTokenVerifier instance from this Builder.withLeeway(Integer leeway) Specify a custom leeway when validating time-based claims such asexpandauth_time.withOrganization(String organization) Specify the expected organization (org_id) the token must be issued for.
-
Method Details
-
withLeeway
Specify a custom leeway when validating time-based claims such asexpandauth_time. If not specified, a default leeway of 60 seconds will be used.- Parameters:
leeway- the custom leeway to use when validating time-based claims, in seconds.- Returns:
- this Builder instance.
-
withOrganization
Specify the expected organization (org_id) the token must be issued for. This should be used if using the Organizations feature.- Parameters:
organization- the ID of the organization.- Returns:
- this Builder instance.
-
build
Constructs an IdTokenVerifier instance from this Builder.- Returns:
- an initialized instance of
IdTokenVerifier.
-