public interface JwtConfigProperties extends ConfigPropertySet
ConfigPropertySet
for JWT configuration.Modifier and Type | Interface and Description |
---|---|
static class |
JwtConfigProperties.JwtConfigPropertiesImpl
Default implementation
|
ConfigPropertySet.Builder<C extends ConfigPropertySet>, ConfigPropertySet.ConfigurationException
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_EXPIRE_TIME
Default JWT expire time
|
static ConfigProperty<Long> |
EXPIRE_TIME_DAYS
JWT token expire time in days (numeric)
|
static ConfigProperty<Long> |
EXPIRE_TIME_HOURS
JWT token expire time in hours (numeric)
|
static ConfigProperty<Long> |
EXPIRE_TIME_MINUTES
JWT token expire time in minutes (numeric)
|
static ConfigProperty<Long> |
EXPIRE_TIME_MS
JWT token expire time in milliseconds (numeric)
|
static ConfigProperty<Long> |
EXPIRE_TIME_SECONDS
JWT token expire time in seconds (numeric)
|
static ConfigProperty<Boolean> |
INCLUDE_DETAILS
Include
Authentication details in JWT token as claims (boolean) |
static ConfigProperty<Boolean> |
INCLUDE_PERMISSIONS
Include
Authentication permissions in JWT token as claims (boolean) |
static ConfigProperty<String> |
ISSUER
JWT issuer
|
static String |
KEY_SOURCE_CLASSPATH_PREFIX |
static String |
KEY_SOURCE_FILE_PREFIX |
static String |
NAME
Configuration property set name
|
static ConfigProperty<Boolean> |
NOT_BEFORE_NOW
Whether to set the
nbf (not before) JWT claim to the timestamp at which the token is created. |
static ConfigProperty<String> |
PRIVATE_KEY
Deprecated.
Use
PRIVATE_KEY_SOURCE and related configuration properties to configure the JWT sign
private key. The key encoding can be specified using the PRIVATE_KEY_ENCODING configuration
property |
static ConfigProperty<KeyEncoding> |
PRIVATE_KEY_ENCODING
JWT sign private key encoding.
|
static ConfigProperty<String> |
PRIVATE_KEY_FILE
Deprecated.
Use
PRIVATE_KEY_SOURCE and related configuration properties to configure the JWT sign
private key. The key source can be specified using the default prefixes
KEY_SOURCE_FILE_PREFIX and KEY_SOURCE_CLASSPATH_PREFIX |
static ConfigProperty<KeyFormat> |
PRIVATE_KEY_FORMAT
JWT sign private key format.
|
static ConfigProperty<String> |
PRIVATE_KEY_SOURCE
JWT sign private key
|
static ConfigProperty<String> |
PRIVATE_KEY_STORE_ALIAS
The key store alias name to use when the JWT sign private key is provided using a key store format, such as
KeyFormat.PKCS12 |
static ConfigProperty<String> |
PRIVATE_KEY_STORE_ALIAS_PASSWORD
The key recovering password to use when the JWT sign private key is provided using a key store format, such as
KeyFormat.PKCS12 |
static ConfigProperty<String> |
PRIVATE_KEY_STORE_PASSWORD
The key store password to use when the JWT sign private key is provided using a key store format, such as
KeyFormat.PKCS12 |
static ConfigProperty<String> |
PUBLIC_KEY
Deprecated.
Use
PUBLIC_KEY_SOURCE and related configuration properties to configure the JWT sign public
key. The key encoding can be specified using the PUBLIC_KEY_ENCODING configuration property |
static ConfigProperty<KeyEncoding> |
PUBLIC_KEY_ENCODING
JWT sign public key encoding.
|
static ConfigProperty<String> |
PUBLIC_KEY_FILE
Deprecated.
Use
PUBLIC_KEY_SOURCE and related configuration properties to configure the JWT sign public
key. The key source can be specified using the default prefixes KEY_SOURCE_FILE_PREFIX and
KEY_SOURCE_CLASSPATH_PREFIX |
static ConfigProperty<KeyFormat> |
PUBLIC_KEY_FORMAT
JWT sign public key format.
|
static ConfigProperty<String> |
PUBLIC_KEY_SOURCE
JWT sign public key
|
static ConfigProperty<String> |
PUBLIC_KEY_STORE_ALIAS
The key store alias name to use when the JWT sign public key is provided using a key store format, such as
KeyFormat.PKCS12 |
static ConfigProperty<String> |
PUBLIC_KEY_STORE_ALIAS_PASSWORD
The key recovering password to use when the JWT sign public key is provided using a key store format, such as
KeyFormat.PKCS12 |
static ConfigProperty<String> |
PUBLIC_KEY_STORE_PASSWORD
The key store password to use when the JWT sign public key is provided using a key store format, such as
KeyFormat.PKCS12 |
static ConfigProperty<String> |
SHARED_KEY
JWT sign shared key (base64 encoded)
|
static ConfigProperty<JwtSignatureAlgorithm> |
SIGNATURE_ALGORITHM
JWT signature algorithm name.
|
Modifier and Type | Method and Description |
---|---|
static ConfigPropertySet.Builder<JwtConfigProperties> |
builder()
Builder to create property set instances bound to a property data source
|
default String |
getName()
Configuration property set name, used as property definition prefix.
|
getConfigPropertyName, getConfigPropertyValue, getConfigPropertyValue, getConfigPropertyValueOrElse, getSubPropertiesUsingPrefix, hasConfigProperty
static final String NAME
static final long DEFAULT_EXPIRE_TIME
static final ConfigProperty<String> ISSUER
static final ConfigProperty<JwtSignatureAlgorithm> SIGNATURE_ALGORITHM
JwtSignatureAlgorithm
enumeration.JwtSignatureAlgorithm
static final ConfigProperty<String> SHARED_KEY
static final String KEY_SOURCE_FILE_PREFIX
static final String KEY_SOURCE_CLASSPATH_PREFIX
static final ConfigProperty<String> PRIVATE_KEY_SOURCE
static final ConfigProperty<KeyFormat> PRIVATE_KEY_FORMAT
KeyFormat
enumeration values.
The default private key format is KeyFormat.PKCS8
.
static final ConfigProperty<KeyEncoding> PRIVATE_KEY_ENCODING
KeyEncoding
enumeration values.
The default private key encoding is KeyEncoding.BASE64
.
static final ConfigProperty<String> PRIVATE_KEY_STORE_PASSWORD
KeyFormat.PKCS12
static final ConfigProperty<String> PRIVATE_KEY_STORE_ALIAS
KeyFormat.PKCS12
static final ConfigProperty<String> PRIVATE_KEY_STORE_ALIAS_PASSWORD
KeyFormat.PKCS12
static final ConfigProperty<String> PUBLIC_KEY_SOURCE
static final ConfigProperty<KeyFormat> PUBLIC_KEY_FORMAT
KeyFormat
enumeration values.
The default public key format is KeyFormat.X509
.
static final ConfigProperty<KeyEncoding> PUBLIC_KEY_ENCODING
KeyEncoding
enumeration values.
The default public key encoding is KeyEncoding.BASE64
.
static final ConfigProperty<String> PUBLIC_KEY_STORE_PASSWORD
KeyFormat.PKCS12
static final ConfigProperty<String> PUBLIC_KEY_STORE_ALIAS
KeyFormat.PKCS12
static final ConfigProperty<String> PUBLIC_KEY_STORE_ALIAS_PASSWORD
KeyFormat.PKCS12
@Deprecated static final ConfigProperty<String> PUBLIC_KEY
PUBLIC_KEY_SOURCE
and related configuration properties to configure the JWT sign public
key. The key encoding can be specified using the PUBLIC_KEY_ENCODING
configuration property@Deprecated static final ConfigProperty<String> PUBLIC_KEY_FILE
PUBLIC_KEY_SOURCE
and related configuration properties to configure the JWT sign public
key. The key source can be specified using the default prefixes KEY_SOURCE_FILE_PREFIX
and
KEY_SOURCE_CLASSPATH_PREFIX
@Deprecated static final ConfigProperty<String> PRIVATE_KEY
PRIVATE_KEY_SOURCE
and related configuration properties to configure the JWT sign
private key. The key encoding can be specified using the PRIVATE_KEY_ENCODING
configuration
property@Deprecated static final ConfigProperty<String> PRIVATE_KEY_FILE
PRIVATE_KEY_SOURCE
and related configuration properties to configure the JWT sign
private key. The key source can be specified using the default prefixes
KEY_SOURCE_FILE_PREFIX
and KEY_SOURCE_CLASSPATH_PREFIX
static final ConfigProperty<Long> EXPIRE_TIME_MS
static final ConfigProperty<Long> EXPIRE_TIME_SECONDS
static final ConfigProperty<Long> EXPIRE_TIME_MINUTES
static final ConfigProperty<Long> EXPIRE_TIME_HOURS
static final ConfigProperty<Long> EXPIRE_TIME_DAYS
static final ConfigProperty<Boolean> NOT_BEFORE_NOW
nbf
(not before) JWT claim to the timestamp at which the token is created.static final ConfigProperty<Boolean> INCLUDE_DETAILS
Authentication
details in JWT token as claims (boolean)static final ConfigProperty<Boolean> INCLUDE_PERMISSIONS
Authentication
permissions in JWT token as claims (boolean)default String getName()
ConfigPropertySet
getName
in interface ConfigPropertySet
static ConfigPropertySet.Builder<JwtConfigProperties> builder()
Copyright © 2019 The Holon Platform. All rights reserved.