Interface ChallengeProvider

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

    @FunctionalInterface
    public interface ChallengeProvider
    A provider that creates a Challenge from a matching JSON.
    Since:
    2.12
    • Method Detail

      • create

        Challenge create​(Login login,
                         JSON data)
        Creates a Challenge.
        Parameters:
        login - Login of the user's account
        data - JSON of the challenge as sent by the CA
        Returns:
        Created and initialized Challenge. It must match the JSON type.