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 SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordRecord recording the usage time and requesting SP for an authentication.
- 
Constructor SummaryConstructorsConstructorDescriptionAuthenticationInfoTrack(Instant authnInstant, String sp, String authnRequestId) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionGets a list of all usages of the user authentication object.Gets information about the first time the user authentication object was used.voidregisterUse(Instant instant, String sp, String authnRequestId) Registers the use of the user authentication object.
- 
Constructor Details- 
AuthenticationInfoTrackConstructor.- Parameters:
- authnInstant- the instant for the original authentication
- sp- the entityID of the SP that requested the original authentication
- authnRequestId- the ID of the- AuthnRequestthat resulted in this authentication object
 
 
- 
- 
Method Details- 
registerUseRegisters 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- AuthnRequestthat resulted in this authentication object
 
- 
getOriginalAuthnGets information about the first time the user authentication object was used.- Returns:
- the authentication instant and the SP that requested the original authentication
 
- 
getAllAuthnUsagesGets a list of all usages of the user authentication object.- Returns:
- a list of usage records
 
 
-