Interface OAuthClientSecretVerifier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Application-owned verification of a pre-registered confidential client's secret. Implementations must be thread safe, honor the remaining budget and use constant-time secret verification. The issuer owns Basic decoding and clears the temporary secret after the callback; do not retain its bytes. A false result means invalid credentials; a null result, exception or exhausted budget is an infrastructure fault.
Since:
1.0.0
Author:
Mark Allen
  • Method Details

    • verifiesClientSecret

      @NonNull Boolean verifiesClientSecret(@NonNull String clientId, byte @NonNull [] presentedSecret, @NonNull Duration remainingTime)
      Checks a temporary decoded secret against application-managed credentials.
      Parameters:
      clientId - the exact registered client identifier
      presentedSecret - temporary secret bytes, valid only for this callback
      remainingTime - the cooperative remaining operation budget
      Returns:
      whether the secret matches
      Since:
      1.0.0