Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this case the page represented by Login.class with be used instead of the DefaultErrorView.

As an alternative it's possible to use the annotation as interceptor for beans.

Code Block
java
java
titleAlternative usage of @Secured as interceptor

@RequestScoped
@Secured(LoginAccessDecisionVoter.class)
public class SecureBean
{
    //...
}

SecurityViolation

In case of a detected violation a SecurityViolation has to be added to the result returned by the AccessDecisionVoter.

...