Class BankIdSessionState

java.lang.Object
se.swedenconnect.bankid.idp.authn.session.BankIdSessionState

public class BankIdSessionState extends Object
Container for multiple BankID session states.

This is construct serves the purpose of holding all sessions that gets started when a user starts authentication for the strict purpose of being able to refer to the first initial session as well as the most current one.

Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • BankIdSessionState

      public BankIdSessionState()
      Constructor.
  • Method Details

    • push

      public void push(BankIdSessionData data)
      Operation to insert a new session data.
      Parameters:
      data - new session data
    • pop

      public BankIdSessionData pop()
      Operation to remove the most current session data.
      Returns:
      old session data
    • getBankIdSessionData

      public BankIdSessionData getBankIdSessionData()
      Gets the most current session data.
      Returns:
      most current bankid session data
    • getInitialOrderTime

      public Instant getInitialOrderTime()
      Gets the instant for the first response.
      Returns:
      point in time of the first response