public static interface JwtConfiguration.Builder
JwtConfiguration instances.| Modifier and Type | Method and Description |
|---|---|
JwtConfiguration |
build()
Build
JwtConfiguration instance |
JwtConfiguration.Builder |
expireTime(long expireTime)
Set JWT token expire time
|
JwtConfiguration.Builder |
includeDetails(boolean includeDetails)
Set whether to include
Authentication details in JWT token generation |
JwtConfiguration.Builder |
includePermissions(boolean includePermissions)
Set whether to include
Authentication permissions in JWT token generation |
JwtConfiguration.Builder |
issuer(String issuer)
Set JWT token issuer
|
JwtConfiguration.Builder |
notBeforeNow(boolean notBeforeNow)
Whether to set the
nbf (not before) JWT claim to the timestamp at which the token is created. |
JwtConfiguration.Builder |
privateKey(Key privateKey)
Set JWT signing private key to use with asymmetric signing algorithms (such as RSA)
|
JwtConfiguration.Builder |
publicKey(Key publicKey)
Set JWT signing public key to use with asymmetric signing algorithms (such as RSA)
|
JwtConfiguration.Builder |
sharedKey(byte[] sharedKey)
Set JWT signing shared key to use with symmetric signing algorithms (such as HMAC)
|
default JwtConfiguration.Builder |
sharedKeyBase64(String sharedKeyBase64encoded)
Set JWT signing shared key to use with symmetric signing algorithms (such as HMAC)
|
JwtConfiguration.Builder |
signatureAlgorithm(JwtSignatureAlgorithm signatureAlgorithm)
Set JWT token signature algorithm
|
JwtConfiguration.Builder issuer(String issuer)
issuer - the issuer to setJwtConfiguration.Builder signatureAlgorithm(JwtSignatureAlgorithm signatureAlgorithm)
signatureAlgorithm - Signature algorithmJwtConfiguration.Builder sharedKey(byte[] sharedKey)
sharedKey - the key to setdefault JwtConfiguration.Builder sharedKeyBase64(String sharedKeyBase64encoded)
sharedKeyBase64encoded - the key (Base64 encoded) to setJwtConfiguration.Builder publicKey(Key publicKey)
publicKey - the key to setJwtConfiguration.Builder privateKey(Key privateKey)
privateKey - the key to setJwtConfiguration.Builder expireTime(long expireTime)
expireTime - Expire time in millisecondsJwtConfiguration.Builder notBeforeNow(boolean notBeforeNow)
nbf (not before) JWT claim to the timestamp at which the token is created.notBeforeNow - true to set the nbf (not before) JWT claim to the timestamp at
which the token is created.JwtConfiguration.Builder includeDetails(boolean includeDetails)
Authentication details in JWT token generationincludeDetails - true to include Authentication detailsJwtConfiguration.Builder includePermissions(boolean includePermissions)
Authentication permissions in JWT token generationincludePermissions - true to include Authentication permissionsJwtConfiguration build()
JwtConfiguration instanceCopyright © 2019 The Holon Platform. All rights reserved.