001/*
002 * acme4j - Java ACME client
003 *
004 * Copyright (C) 2021 Richard "Shred" Körber
005 *   http://acme4j.shredzone.org
006 *
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
013 */
014package org.shredzone.acme4j.smime.challenge;
015
016import org.shredzone.acme4j.Login;
017import org.shredzone.acme4j.challenge.Challenge;
018import org.shredzone.acme4j.provider.ChallengeProvider;
019import org.shredzone.acme4j.provider.ChallengeType;
020import org.shredzone.acme4j.toolbox.JSON;
021
022/**
023 * Generates {@link EmailReply00Challenge}.
024 *
025 * @since 2.12
026 */
027@ChallengeType(EmailReply00Challenge.TYPE)
028public class EmailReply00ChallengeProvider implements ChallengeProvider {
029
030    @Override
031    public Challenge create(Login login, JSON data) {
032        return new EmailReply00Challenge(login, data);
033    }
034
035}