public class UserAnnotationHandler extends AuthorizingAnnotationHandler
RequiresUserannotation is declared, and if so, ensures the calling
authenticatedor remembered via remember me services before allowing access.
This annotation essentially ensures that
getPrincipal() != null
|Constructor and Description|
Default no-argument constructor that ensures this handler looks for
|Modifier and Type||Method and Description|
Ensures that the calling
getAnnotationClass, getSubject, setAnnotationClass
public void assertAuthorized(Annotation a) throws AuthorizationException
Subjectis a user, that is, they are either
authenticatedor remembered via remember me services before allowing access, and if not, throws an
AuthorizingExceptionindicating access is not allowed.
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.