Package io.quarkus.oidc.common.runtime
Class OidcCommonConfig.Credentials.Jwt
- java.lang.Object
-
- io.quarkus.oidc.common.runtime.OidcCommonConfig.Credentials.Jwt
-
- Enclosing class:
- OidcCommonConfig.Credentials
public static class OidcCommonConfig.Credentials.Jwt extends Object
Supports the client authentication 'client_secret_jwt' and 'private_key_jwt' methods which involve sending a JWT token assertion signed with either a client secret or private key.
-
-
Field Summary
Fields Modifier and Type Field Description Optional<String>keyFileIf provided, indicates that JWT is signed using a private key in PEM or JWK formatOptional<String>keyIdThe private key id/aliasStringkeyPasswordThe private key passwordOptional<String>keyStoreFileIf provided, indicates that JWT is signed using a private key from a key storeStringkeyStorePasswordA parameter to specify the password of the key store file.intlifespanJWT life-span in seconds.Optional<String>secretIf provided, indicates that JWT is signed using a secret keyOptional<String>tokenKeyIdKey identifier of the signing key added as a JWT 'kid' header
-
Constructor Summary
Constructors Constructor Description Jwt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLifespan()Optional<String>getSecret()voidsetLifespan(int lifespan)voidsetSecret(String secret)
-
-
-
Field Detail
-
secret
@ConfigItem public Optional<String> secret
If provided, indicates that JWT is signed using a secret key
-
keyFile
@ConfigItem public Optional<String> keyFile
If provided, indicates that JWT is signed using a private key in PEM or JWK format
-
keyStoreFile
@ConfigItem public Optional<String> keyStoreFile
If provided, indicates that JWT is signed using a private key from a key store
-
keyStorePassword
@ConfigItem(defaultValue="password") public String keyStorePassword
A parameter to specify the password of the key store file. If not given, the default ("password") is used.
-
keyId
@ConfigItem public Optional<String> keyId
The private key id/alias
-
keyPassword
@ConfigItem(defaultValue="password") public String keyPassword
The private key password
-
tokenKeyId
@ConfigItem public Optional<String> tokenKeyId
Key identifier of the signing key added as a JWT 'kid' header
-
lifespan
@ConfigItem(defaultValue="10") public int lifespan
JWT life-span in seconds. It will be added to the time it was issued at to calculate the expiration time.
-
-