org.apache.myfaces.extensions.cdi.jsf.impl.util
Class SecurityUtils

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.util.SecurityUtils

@Typed
public abstract class SecurityUtils
extends Object

Helper for Secured


Method Summary
static Class<? extends ViewConfig> handleSecurityViolationWithoutNavigation(RuntimeException runtimeException)
          Processes a security violation without triggering the navigation to the error page
static void tryToHandleSecurityViolation(RuntimeException runtimeException)
          Processes a security violation including the navigation to the error page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handleSecurityViolationWithoutNavigation

public static Class<? extends ViewConfig> handleSecurityViolationWithoutNavigation(RuntimeException runtimeException)
Processes a security violation without triggering the navigation to the error page

Parameters:
runtimeException - current exception
Returns:
error view which can be used e.g. for manual navigation

tryToHandleSecurityViolation

public static void tryToHandleSecurityViolation(RuntimeException runtimeException)
Processes a security violation including the navigation to the error page

Parameters:
runtimeException - current exception


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.