public static class JWTConfig.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected EnumWrapper<JwtAlgorithm> |
algorithm |
protected String |
clientId |
protected String |
clientSecret |
protected String |
enterpriseId |
protected String |
jwtKeyId |
protected String |
privateKey |
protected PrivateKeyDecryptor |
privateKeyDecryptor |
protected String |
privateKeyPassphrase |
protected TokenStorage |
tokenStorage |
protected String |
userId |
| Constructor and Description |
|---|
Builder(String clientId,
String clientSecret,
String jwtKeyId,
String privateKey,
String privateKeyPassphrase) |
| Modifier and Type | Method and Description |
|---|---|
JWTConfig.Builder |
algorithm(EnumWrapper<JwtAlgorithm> algorithm) |
JWTConfig.Builder |
algorithm(JwtAlgorithm algorithm) |
JWTConfig |
build() |
JWTConfig.Builder |
enterpriseId(String enterpriseId) |
JWTConfig.Builder |
privateKeyDecryptor(PrivateKeyDecryptor privateKeyDecryptor) |
JWTConfig.Builder |
tokenStorage(TokenStorage tokenStorage) |
JWTConfig.Builder |
userId(String userId) |
protected final String clientSecret
protected final String privateKey
protected final String privateKeyPassphrase
protected String enterpriseId
protected EnumWrapper<JwtAlgorithm> algorithm
protected TokenStorage tokenStorage
protected PrivateKeyDecryptor privateKeyDecryptor
public JWTConfig.Builder enterpriseId(String enterpriseId)
public JWTConfig.Builder userId(String userId)
public JWTConfig.Builder algorithm(JwtAlgorithm algorithm)
public JWTConfig.Builder algorithm(EnumWrapper<JwtAlgorithm> algorithm)
public JWTConfig.Builder tokenStorage(TokenStorage tokenStorage)
public JWTConfig.Builder privateKeyDecryptor(PrivateKeyDecryptor privateKeyDecryptor)