Class PrivateKeyJwtClientAuthenticationFilter.Builder<T extends PrivateKeyJwtClientAuthenticationFilter.Builder<T>>

    • Constructor Detail

      • Builder

        public Builder()
    • 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.