Package org.bgerp.plugin.sec.auth
Class AuthResult
java.lang.Object
org.bgerp.plugin.sec.auth.AuthResult
Auth result.
-
Constructor Summary
ConstructorDescriptionAuthResult
(Throwable exception) Auth error.AuthResult
(User user) Successful auth constructor. -
Method Summary
-
Constructor Details
-
AuthResult
Successful auth constructor.- Parameters:
user
-
-
AuthResult
Auth error.- Parameters:
exception
-
-
-
Method Details
-
isSuccess
public boolean isSuccess()- Returns:
- auth success.
-
getUser
- Returns:
- user in case of
isSuccess()
.
-
getException
- Returns:
- exception in case of not
isSuccess()
.
-