Package org.bgerp.plugin.sec.auth

# Class AuthResult

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

public class AuthResult extends Object
Auth result.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AuthResult(Throwable exception)`
  Auth error.
  `AuthResult(User user)`
  Successful auth constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Throwable`
  `getException()`
  `User`
  `getUser()`
  `boolean`
  `isSuccess()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()`.