Interface CNonceHandler

All Superinterfaces:
Provider
All Known Implementing Classes:
JwtCNonceHandler

public interface CNonceHandler extends Provider
Author:
Pascal Knüppel
  • Method Details

    • buildCNonce

      String buildCNonce(List<String> audiences, @Nullable Map<String,Object> additionalDetails)
      used to build a cNonce in any style. For jwt-based cNonces we will additionally require the audience-values that should be added into the cNonce
      Parameters:
      audiences - the audiences for jwt-based cNonces
      additionalDetails - additional attributes that might be required to build the cNonce and that are handler specific
      Returns:
      the cNonce in string representation
    • verifyCNonce

      void verifyCNonce(String cNonce, List<String> audiences, @Nullable Map<String,Object> additionalDetails) throws VerificationException
      must verify the validity of a cNonce value that has been issued by the buildCNonce(List, Map) method.
      Parameters:
      cNonce - the cNonce to validate
      audiences - the expected audiences for jwt-based cNonces
      additionalDetails - additional attributes that might be required to build the cNonce and that are handler specific
      Throws:
      VerificationException
    • close

      default void close()
      Specified by:
      close in interface Provider