Interface DPoPNonceProvider


public interface DPoPNonceProvider
When a DPoP proof must include a nonce, register an implementation of this interface as a CDI bean to provide and validate a nonce value.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Provides a nonce that must be included in the DPoP proof as the "nonce" claim.
    boolean
    isValid(String nonce)
    Determines if a DPoP proof nonce is valid.
  • Method Details

    • getNonce

      String getNonce()
      Provides a nonce that must be included in the DPoP proof as the "nonce" claim.
      Returns:
      resource server nonce
    • isValid

      boolean isValid(String nonce)
      Determines if a DPoP proof nonce is valid. Implementations must check that this nonce exists and has not expired.
      Parameters:
      nonce - DPoP proof nonce
      Returns:
      true if the `nonce` is valid