Class FlowAuthorizationException

All Implemented Interfaces:
Serializable

public class FlowAuthorizationException extends FlowAccessException
This exception is used to indicate the flow could not be accessed due to a required role not being present.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • FlowAuthorizationException

      public FlowAuthorizationException(String flowName, String message, String[] requiredRoles, boolean authenticated)
      Constructs the exception with the required parameters.
      Parameters:
      flowName - the name of the flow that could not be accessed.
      message - Message providing further information about the cause of the error.
      requiredRoles - Array of roles that is required by the flow.
      authenticated - Represents the logged in state of the user.
  • Method Details

    • getRequiredRoles

      public String[] getRequiredRoles()
      Returns the roles needed to start a certain flow.
      Returns:
      String[] of roles
    • isAuthenticated

      public boolean isAuthenticated()
      Returns if the user is authenticated.
      Returns:
      boolean