Package org.forgerock.http.oauth2
Class PrivateKeyJwtClientAuthenticationFilter.Builder<T extends PrivateKeyJwtClientAuthenticationFilter.Builder<T>>
- java.lang.Object
-
- org.forgerock.http.oauth2.PrivateKeyJwtClientAuthenticationFilter.Builder<T>
-
- Type Parameters:
T
- the type of Filter builder to build.
- Direct Known Subclasses:
EncryptedPrivateKeyJwtClientAuthenticationFilter.Builder
- Enclosing class:
- PrivateKeyJwtClientAuthenticationFilter
public static class PrivateKeyJwtClientAuthenticationFilter.Builder<T extends PrivateKeyJwtClientAuthenticationFilter.Builder<T>> extends Object
Builder class for creating the PrivateKey Jwt ClientAuthentication Filter.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateKeyJwtClientAuthenticationFilter
build()
Builds the PrivateKey Jwt ClientAuthentication Filter.protected T
self()
Returns this object, as its actual type.String
toString()
T
withClientId(String clientId)
Sets the client id that will be used in the private key jwt.T
withClock(Clock clock)
Sets the clock instance.T
withPrivateKeyJwtExpiryTime(Duration privateKeyJwtExpiryTime)
Sets duration after the jwt will expire.T
withSecretsProvider(SecretsProvider secretsProvider)
Sets the secrets provider to resolve the signing keys.T
withSigningAlgorithm(JwsAlgorithm signingAlgorithm)
Sets algorithm used to sign the private key jwt.T
withSigningPurpose(Purpose<SigningKey> signingPurpose)
Sets purpose to look up the signing key.T
withTokenEndpoint(URI tokenEndpoint)
Sets the token end point used to specify as the aud in the private key jwt.
-
-
-
Method Detail
-
self
protected T self()
Returns this object, as its actual type.- Returns:
- this object.
-
withClientId
public T withClientId(String clientId)
Sets the client id that will be used in the private key jwt.- Parameters:
clientId
- The client id that will be used in the private key jwt.- Returns:
- The builder.
-
withTokenEndpoint
public T withTokenEndpoint(URI tokenEndpoint)
Sets the token end point used to specify as the aud in the private key jwt.- Parameters:
tokenEndpoint
- The token end point used to specify as the aud in the private key jwt.- Returns:
- The builder.
-
withSecretsProvider
public T withSecretsProvider(SecretsProvider secretsProvider)
Sets the secrets provider to resolve the signing keys.- Parameters:
secretsProvider
- The secrets provider.- Returns:
- The builder.
-
withSigningPurpose
public T withSigningPurpose(Purpose<SigningKey> signingPurpose)
Sets purpose to look up the signing key.- Parameters:
signingPurpose
- The signing purpose.- Returns:
- The builder.
-
withSigningAlgorithm
public T withSigningAlgorithm(JwsAlgorithm signingAlgorithm)
Sets algorithm used to sign the private key jwt.- Parameters:
signingAlgorithm
- The algorithm used to sign the private key jwt.- Returns:
- The builder.
-
withPrivateKeyJwtExpiryTime
public T withPrivateKeyJwtExpiryTime(Duration privateKeyJwtExpiryTime)
Sets duration after the jwt will expire.- Parameters:
privateKeyJwtExpiryTime
- The duration after the jwt will expire.- Returns:
- The builder.
-
withClock
public T withClock(Clock clock)
Sets the clock instance.- Parameters:
clock
- The clock instance.- Returns:
- The builder.
-
build
public PrivateKeyJwtClientAuthenticationFilter build()
Builds the PrivateKey Jwt ClientAuthentication Filter.- Returns:
- The PrivateKey Jwt ClientAuthentication Filter.
-
-