Class Saml2UserAuthentication.AuthenticationInfoTrack

java.lang.Object
se.swedenconnect.spring.saml.idp.authentication.Saml2UserAuthentication.AuthenticationInfoTrack
All Implemented Interfaces:
Serializable
Enclosing class:
Saml2UserAuthentication

public static class Saml2UserAuthentication.AuthenticationInfoTrack extends Object implements Serializable
Remembers all (SAML) occurences where the user authentication has been used.
See Also:
  • Constructor Details

    • AuthenticationInfoTrack

      public AuthenticationInfoTrack(Instant authnInstant, String sp, String authnRequestId)
      Constructor.
      Parameters:
      authnInstant - the instant for the original authentication
      sp - the entityID of the SP that requested the original authentication
      authnRequestId - the ID of the AuthnRequest that resulted in this authentication object
  • Method Details

    • registerUse

      public void registerUse(Instant instant, String sp, String authnRequestId)
      Registers the use of the user authentication object.
      Parameters:
      instant - the instant when the authentication was used
      sp - the entityID of the SP that ordered the authentication
      authnRequestId - the ID of the AuthnRequest that resulted in this authentication object
    • getOriginalAuthn

      Gets information about the first time the user authentication object was used.
      Returns:
      the authentication instant and the SP that requested the original authentication
    • getAllAuthnUsages

      Gets a list of all usages of the user authentication object.
      Returns:
      a list of usage records