com.litongjava.annotation.RequiresAuthentication Maven / Gradle / Ivy
package com.litongjava.annotation;
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;
/**
* Requires the current subject to be authenticated during method invocation.
* If the subject is not authenticated, the method will not be executed.
*
* Example:
*
* @RequiresAuthentication
* public void someMethod() { ... }
*
*
* @since 0.9
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface RequiresAuthentication {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy