Package com.okta.jwt
Interface AccessTokenVerifier.Builder
- All Superinterfaces:
VerifierBuilderSupport<AccessTokenVerifier.Builder,
AccessTokenVerifier>
- All Known Implementing Classes:
JjwtAccessTokenVerifierBuilder
- Enclosing interface:
AccessTokenVerifier
public static interface AccessTokenVerifier.Builder
extends VerifierBuilderSupport<AccessTokenVerifier.Builder,AccessTokenVerifier>
Builder interface used to simplify construction of a AccessTokenVerifier.
-
Method Summary
Modifier and TypeMethodDescriptionsetAudience
(String audience) Sets the audience the verifier will expect.Methods inherited from interface com.okta.jwt.VerifierBuilderSupport
build, setClock, setConnectionTimeout, setIssuer, setLeeway, setPreloadSigningKeys, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setRetryMaxAttempts, setRetryMaxElapsed
-
Method Details
-
setAudience
Sets the audience the verifier will expect. Default implementation, uses "api://default" as the default value.- Parameters:
audience
- Audience- Returns:
- a reference to the current builder for use in method chaining
-