All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.security.code.ValidateCodeRepository Maven / Gradle / Ivy

There is a newer version: 1.2.1.RELEASE
Show newest version
package com.healthy.common.security.code;

import org.springframework.web.context.request.ServletWebRequest;

/**
 * ValidateCodeRepository
 *
 * @author xiaomingzhang
 */
public interface ValidateCodeRepository {

    /**
     * Save verification code
     *
     * @param request
     * @param code
     * @param validateCodeType
     */
    void save(ServletWebRequest request, ValidateCode code, ValidateCodeType validateCodeType);

    /**
     * get verification code
     *
     * @param request
     * @param validateCodeType
     * @return ValidateCode
     */
    ValidateCode get(ServletWebRequest request, ValidateCodeType validateCodeType);

    /**
     * remove verification code
     *
     * @param request
     * @param codeType
     */
    void remove(ServletWebRequest request, ValidateCodeType codeType);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy