Annotation Type RequiresGuest

public @interface RequiresGuest

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.

This annotation is the logical inverse of the RequiresUser annotation. That is, RequiresUser == !RequiresGuest, or more accurately,

RequiresGuest === subject.getPrincipal() == null.

See Also:
RequiresAuthentication, RequiresUser

Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.