Class AuthResult

java.lang.Object
org.bgerp.plugin.sec.auth.AuthResult

public class AuthResult extends Object
Auth result.
  • Constructor Details

    • AuthResult

      public AuthResult(User user)
      Successful auth constructor.
      Parameters:
      user -
    • AuthResult

      public AuthResult(Throwable exception)
      Auth error.
      Parameters:
      exception -
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns:
      auth success.
    • getUser

      public User getUser()
      Returns:
      user in case of isSuccess().
    • getException

      public Throwable getException()
      Returns:
      exception in case of not isSuccess().