Annotation Type RequiresGuest


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    public @interface RequiresGuest
    The RequiresGuest annotation requires the current Subject to be a "guest", that is, they are not authenticated or remembered from a previous session for the annotated class/instance/method to be accessed or invoked.

    For example:

    
     @RequiresGuest
     public void signUp(User newUser) {
            //this method will only be invoked by a
            //Subject that is unknown/anonymous
         ...
     }