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

cn.bestwu.simpleframework.security.ClientAuthorize Maven / Gradle / Ivy

There is a newer version: 0.1.33
Show newest version
package cn.bestwu.simpleframework.security;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.http.HttpMethod;

/**
 * 注解了此类的方法,需要Client Authorize
 *
 * @author Peter Wu
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface ClientAuthorize {

	/**
	 * @return 接口的URI,默认由接口指定
	 */
	String[] value() default {};

	/**
	 * @return 请求方法
	 */
	HttpMethod method() default HttpMethod.POST;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy