public static interface JwtAuthenticator.Builder
JwtAuthenticator
instancesModifier and Type | Method and Description |
---|---|
JwtAuthenticator |
build()
Build the JwtAuthenticator
|
JwtAuthenticator.Builder |
configuration(JwtConfiguration configuration)
Set the
JwtConfiguration to use to perform authentication and token validation |
JwtAuthenticator.Builder |
issuer(String issuer)
Add an allowed JWT issuer.
|
default JwtAuthenticator.Builder |
requiredClaim(String claim)
Deprecated.
|
JwtAuthenticator.Builder |
withRequiredClaim(String claim)
Add a required JWT claim: specified claim must exist in JWT token, otherwise authentication will fail.
|
JwtAuthenticator.Builder configuration(JwtConfiguration configuration)
JwtConfiguration
to use to perform authentication and token validationconfiguration
- JwtConfiguration (not null)JwtAuthenticator.Builder issuer(String issuer)
If one ore more allowed issuer is registered, JWT Issuer claim (iss) will be required and checked during token authentication: if token issuer doesn't match one of the given issuers, authentication will fail.
issuer
- Issuer to add (not null)JwtAuthenticator.Builder withRequiredClaim(String claim)
claim
- Claim to add (not null)@Deprecated default JwtAuthenticator.Builder requiredClaim(String claim)
withRequiredClaim(String)
claim
- Claim to add (not null)JwtAuthenticator build()
Copyright © 2019 The Holon Platform. All rights reserved.