Interface UserState

  • All Known Implementing Classes:
    BaseUserState, NoopUserState, SimpleUserState

    public interface UserState
    UserState handles logging in any client, and maintains the state. The UserState provides access to the Subject and the User for the client.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  UserState.Factory
      A factory for creating a UserState.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.ArrayList<UserStateFactory> FACTORIES
      An ordered list of factories for creating UserState instances.
    • Field Detail

      • FACTORIES

        static final java.util.ArrayList<UserStateFactory> FACTORIES
        An ordered list of factories for creating UserState instances. The UserState factories are tried in order, from first to last.
    • Method Detail

      • getSubject

        javax.security.auth.Subject getSubject()
        Returns the Subject for this user. Attempts to log in if not already logged in.
        Returns:
        the Subject for this user state
      • update

        default void update​(UserState otherUserState)
                     throws java.io.IOException
        Use a new user state to update the credentials in the current user state.
        Parameters:
        otherUserState - the new user state for credentials update
        Throws:
        java.io.IOException