Interface WebAuthSession

    • Method Detail

      • startup

        void startup()
        Start up the session. May only be called once.
        Throws:
        java.lang.IllegalStateException - if the session was already started or shut down
      • shutdown

        void shutdown()
        Shut down the session. May only be called once after startup.
        Throws:
        java.lang.IllegalStateException - if the session was already shut down or if it was never started
      • getName

        @Nonnull
        java.util.Optional<java.lang.String> getName()
        Returns:
        an Optional containing the IdP Adapter name associated with this session or an empty Optional if the IdP Adapter name is null
      • logout

        default java.util.Optional<java.lang.String> logout()
        Clears the user from this WebAuthSession
        Returns:
        an optional signed attributes document used as a hint to the IdP during logout
      • logout

        java.util.Optional<java.lang.String> logout​(@Nullable
                                                    java.lang.String message)
        Clears the user from this WebAuthSession
        Parameters:
        message - an optional message to include with the logout event
        Returns:
        an optional signed attributes document used as a hint to the IdP during logout
      • getEventBus

        @Nonnull
        com.google.common.eventbus.EventBus getEventBus()
        WebAuthSessionChangeEvents will be posted to the EventBus when the WebAuthSession has changed. Interested parties may call EventBus.register(Object) to listen for changes.
        Returns:
        the EventBus for this WebAuthSession