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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Record recording the usage time and requesting SP for an authentication. -
Constructor Summary
ConstructorDescriptionAuthenticationInfoTrack
(Instant authnInstant, String sp, String authnRequestId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets a list of all usages of the user authentication object.Gets information about the first time the user authentication object was used.void
registerUse
(Instant instant, String sp, String authnRequestId) Registers the use of the user authentication object.
-
Constructor Details
-
AuthenticationInfoTrack
Constructor.- Parameters:
authnInstant
- the instant for the original authenticationsp
- the entityID of the SP that requested the original authenticationauthnRequestId
- the ID of theAuthnRequest
that resulted in this authentication object
-
-
Method Details
-
registerUse
Registers the use of the user authentication object.- Parameters:
instant
- the instant when the authentication was usedsp
- the entityID of the SP that ordered the authenticationauthnRequestId
- the ID of theAuthnRequest
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
-