// Path: sso-support/sso-support-validate/src/main/java/com/carl/sso/support/validate/ValidateCredential.java
// public interface ValidateCredential extends Credential {
//     /**
//      * 传入数据
//      * @return
//      */
//     Object data();
// }


import javax.validation.constraints.NotNull;
import com.carl.sso.support.validate.ValidateCredential;
/*
 * 版权所有.(c)2008-2017. 卡尔科技工作室
 */

package com.carl.sso.support.validate.imp.mail;



/**
 * @author Carl
 * @date 2017/11/2
 * @since 2.3.8
 */
public class MailValidateCredential extends MailCredential implements ValidateCredential {
    //校验码
    private String code;

    /**
     * @param sessionId
     * @param mail
     * @param busId     业务id，用于区分发送场景
     */
    public MailValidateCredential(@NotNull String sessionId, @NotNull String mail, @NotNull String busId, @NotNull String code) {
        super(sessionId, mail, busId);
        this.code = code;
    }

    @Override
// Path: sso-support/sso-support-validate/src/main/java/com/carl/sso/support/validate/ValidateCredential.java
// public interface ValidateCredential extends Credential {
//     /**
//      * 传入数据
//      * @return
//      */
//     Object data();
// }


// Path: sso-support/sso-support-validate/src/main/java/com/carl/sso/support/validate/imp/mail/MailValidateCredential.java
import javax.validation.constraints.NotNull;
import com.carl.sso.support.validate.ValidateCredential;

/*
 * 版权所有.(c)2008-2017. 卡尔科技工作室
 */

package com.carl.sso.support.validate.imp.mail;



/**
 * @author Carl
 * @date 2017/11/2
 * @since 2.3.8
 */
public class MailValidateCredential extends MailCredential implements ValidateCredential {
    //校验码
    private String code;

    /**
     * @param sessionId
     * @param mail
     * @param busId     业务id，用于区分发送场景
     */
    public MailValidateCredential(@NotNull String sessionId, @NotNull String mail, @NotNull String busId, @NotNull String code) {
        super(sessionId, mail, busId);
        this.code = code;
    }

    @Override
    public Object data() {