Tabnine Logo
UserAnnotationHandler.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.shiro.authz.aop.UserAnnotationHandler
constructor

Best Java code snippets using org.apache.shiro.authz.aop.UserAnnotationHandler.<init> (Showing top 8 results out of 315)

origin: apache/shiro

/**
 * Default no-argument constructor that ensures this interceptor looks for
 *
 * {@link org.apache.shiro.authz.annotation.RequiresUser RequiresUser} annotations in a method
 * declaration.
 */
public UserAnnotationMethodInterceptor() {
  super( new UserAnnotationHandler() );
}
origin: apache/shiro

/**
 *
 * @param resolver
 * @since 1.1
 */
public UserAnnotationMethodInterceptor(AnnotationResolver resolver) {
  super(new UserAnnotationHandler(), resolver);
}
origin: apache/shiro

private static AuthorizingAnnotationHandler createHandler(Annotation annotation) {
  Class<?> t = annotation.annotationType();
  if (RequiresPermissions.class.equals(t)) return new PermissionAnnotationHandler();
  else if (RequiresRoles.class.equals(t)) return new RoleAnnotationHandler();
  else if (RequiresUser.class.equals(t)) return new UserAnnotationHandler();
  else if (RequiresGuest.class.equals(t)) return new GuestAnnotationHandler();
  else if (RequiresAuthentication.class.equals(t)) return new AuthenticatedAnnotationHandler();
  else throw new IllegalArgumentException("Cannot create a handler for the unknown for annotation " + t);
}
origin: org.apache.shiro/shiro-core

/**
 *
 * @param resolver
 * @since 1.1
 */
public UserAnnotationMethodInterceptor(AnnotationResolver resolver) {
  super(new UserAnnotationHandler(), resolver);
}
origin: org.apache.shiro/shiro-core

/**
 * Default no-argument constructor that ensures this interceptor looks for
 *
 * {@link org.apache.shiro.authz.annotation.RequiresUser RequiresUser} annotations in a method
 * declaration.
 */
public UserAnnotationMethodInterceptor() {
  super( new UserAnnotationHandler() );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.shiro

/**
 * Default no-argument constructor that ensures this interceptor looks for
 *
 * {@link org.apache.shiro.authz.annotation.RequiresUser RequiresUser} annotations in a method
 * declaration.
 */
public UserAnnotationMethodInterceptor() {
  super( new UserAnnotationHandler() );
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.shiro

/**
 *
 * @param resolver
 * @since 1.1
 */
public UserAnnotationMethodInterceptor(AnnotationResolver resolver) {
  super(new UserAnnotationHandler(), resolver);
}
origin: org.secnod.shiro/shiro-jersey

private static AuthorizingAnnotationHandler createHandler(Annotation annotation) {
  Class<?> t = annotation.annotationType();
  if (RequiresPermissions.class.equals(t)) return new PermissionAnnotationHandler();
  else if (RequiresRoles.class.equals(t)) return new RoleAnnotationHandler();
  else if (RequiresUser.class.equals(t)) return new UserAnnotationHandler();
  else if (RequiresGuest.class.equals(t)) return new GuestAnnotationHandler();
  else if (RequiresAuthentication.class.equals(t)) return new AuthenticatedAnnotationHandler();
  else throw new IllegalArgumentException("Cannot create a handler for the unknown for annotation " + t);
}
org.apache.shiro.authz.aopUserAnnotationHandler<init>

Javadoc

Default no-argument constructor that ensures this handler looks for org.apache.shiro.authz.annotation.RequiresUser annotations.

Popular methods of UserAnnotationHandler

  • getSubject

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFileChooser (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now