29 lines
591 B
Java
29 lines
591 B
Java
package org.springblade.core.api.crypto.annotation.encrypt;
|
|
|
|
import org.springblade.core.api.crypto.enums.CryptoType;
|
|
import org.springframework.core.annotation.AliasFor;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
/**
|
|
* des 加密
|
|
*
|
|
* @author licoy.cn, L.cm
|
|
* @see ApiEncrypt
|
|
*/
|
|
@Target({ElementType.METHOD, ElementType.TYPE})
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Documented
|
|
@ApiEncrypt(CryptoType.DES)
|
|
public @interface ApiEncryptDes {
|
|
|
|
/**
|
|
* Alias for {@link ApiEncrypt#secretKey()}.
|
|
*
|
|
* @return {String}
|
|
*/
|
|
@AliasFor(annotation = ApiEncrypt.class)
|
|
String secretKey() default "";
|
|
|
|
}
|