Class 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:
    Serialized Form
    • Constructor Detail

      • NotPortalAccountException

        public NotPortalAccountException​(UserAccount userAccount,
                                         Portal portal)
        Create a NotPortalAccountException with the given authenticated user account and unassociated portal.
        Parameters:
        userAccount - the authenticated user account
        portal - the non associated portal
    • Method Detail

      • getUserAccount

        public UserAccount getUserAccount()
        Return the authenticated local user account.
        Returns:
        the authenticated local user account
      • getPortal

        public Portal getPortal()
        Return the Portal the user account is not associated with.
        Returns:
        the Portal the user account is not associated with