Class UserContext

    • Constructor Detail

      • UserContext

        public UserContext​(UserContext delegate)
      • UserContext

        public UserContext​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • get

        public User get()
        Get the authenticated user (if any). This will usually be injected by an auth handler if authentication if successful.
        Returns:
        the user, or null if the current user is not authenticated.
      • authenticated

        public boolean authenticated()
      • loginHint

        public UserContext loginHint​(String loginHint)
        When performing a web identity operation, hint if possible to the identity provider to use the given login.
        Parameters:
        loginHint - the desired login name, for example: admin.
        Returns:
        fluent self
      • impersonate

        public void impersonate()
      • rxImpersonate

        public rx.Single<Void> rxImpersonate()
      • impersonate

        public void impersonate​(String redirectUri)
      • rxImpersonate

        public rx.Single<Void> rxImpersonate​(String redirectUri)
      • restore

        public void restore()
      • rxRestore

        public rx.Single<Void> rxRestore()
      • restore

        public void restore​(String redirectUri)
      • rxRestore

        public rx.Single<Void> rxRestore​(String redirectUri)
      • logout

        public void logout​(String redirectUri)
      • rxLogout

        public rx.Single<Void> rxLogout​(String redirectUri)
      • logout

        public void logout()
      • rxLogout

        public rx.Single<Void> rxLogout()