Interface AccessRefuser

All Known Implementing Classes:
RedirectToOAuthAccessRefuser

public interface AccessRefuser
  • Method Summary

    Modifier and Type
    Method
    Description
    refuse(AuthScope scope, AuthConstraint constraint, CurrentUser user)
    Return a Throwable (should either be an Error or a RuntimeException) to be raised when the provided user fails the authentication constraint
  • Method Details

    • refuse

      Throwable refuse(AuthScope scope, AuthConstraint constraint, CurrentUser user)
      Return a Throwable (should either be an Error or a RuntimeException) to be raised when the provided user fails the authentication constraint
      Parameters:
      constraint - the constraint the user failed
      user - the user
      Returns:
      an implementation of Error or RuntimeException to be thrown