public static class DefaultJwtAuthenticator.DefaultBuilder extends Object implements JwtAuthenticator.Builder
Builder implementation| Constructor and Description |
|---|
DefaultBuilder()
Constructor
|
| Modifier 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.
|
JwtAuthenticator.Builder |
withRequiredClaim(String claim)
Add a required JWT claim: specified claim must exist in JWT token, otherwise authentication will fail.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequiredClaimpublic JwtAuthenticator.Builder configuration(JwtConfiguration configuration)
JwtAuthenticator.BuilderJwtConfiguration to use to perform authentication and token validationconfiguration in interface JwtAuthenticator.Builderconfiguration - JwtConfiguration (not null)public JwtAuthenticator.Builder issuer(String issuer)
JwtAuthenticator.BuilderIf 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 in interface JwtAuthenticator.Builderissuer - Issuer to add (not null)public JwtAuthenticator.Builder withRequiredClaim(String claim)
JwtAuthenticator.BuilderwithRequiredClaim in interface JwtAuthenticator.Builderclaim - Claim to add (not null)public JwtAuthenticator build()
JwtAuthenticator.Builderbuild in interface JwtAuthenticator.BuilderCopyright © 2019 The Holon Platform. All rights reserved.