Package com.avoka.fc.core.security
Class NotPortalAccountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.authentication.AccountStatusException
com.avoka.fc.core.security.NotPortalAccountException
- All Implemented Interfaces:
Serializable
public class NotPortalAccountException
extends org.springframework.security.authentication.AccountStatusException
Provides an exception used to denote an authenticated user account is not associated with the portal.
- See Also:
-
Constructor Summary
ConstructorDescriptionNotPortalAccountException
(UserAccount userAccount, Portal portal) Create a NotPortalAccountException with the given authenticated user account and unassociated portal. -
Method Summary
Modifier and TypeMethodDescriptionReturn the Portal the user account is not associated with.Return the authenticated local user account.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotPortalAccountException
Create a NotPortalAccountException with the given authenticated user account and unassociated portal.- Parameters:
userAccount
- the authenticated user accountportal
- the non associated portal
-
-
Method Details
-
getUserAccount
Return the authenticated local user account.- Returns:
- the authenticated local user account
-
getPortal
Return the Portal the user account is not associated with.- Returns:
- the Portal the user account is not associated with
-