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

org.picketlink.authorization.annotations.RequiresLevel Maven / Gradle / Ivy

There is a newer version: 2.7.0.Final
Show newest version
package org.picketlink.authorization.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.util.Nonbinding;

import org.apache.deltaspike.security.api.authorization.SecurityBindingType;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 

Defines an authorization check where only users with same or higher level then specified are allowed to invoke method

* *

The constraint is validated before method invocation.

* * @author Michal Trnka */ @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) @Documented @SecurityBindingType public @interface RequiresLevel { /** * Text representation of the Level * * @return */ @Nonbinding String value() default ""; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy