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

com.litongjava.annotation.RequiresAuthentication Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
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