Record Class Saml2UserAuthentication.AuthenticationInfoTrack.AuthnUse
java.lang.Object
java.lang.Record
se.swedenconnect.spring.saml.idp.authentication.Saml2UserAuthentication.AuthenticationInfoTrack.AuthnUse
- All Implemented Interfaces:
Serializable
- Enclosing class:
Saml2UserAuthentication.AuthenticationInfoTrack
public static record Saml2UserAuthentication.AuthenticationInfoTrack.AuthnUse(Instant use, String sp, String authnRequestId)
extends Record
implements Serializable
Record recording the usage time and requesting SP for an authentication.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthnRequestIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sp()Returns the value of thesprecord component.final StringtoString()Returns a string representation of this record class.use()Returns the value of theuserecord component.
-
Constructor Details
-
AuthnUse
Creates an instance of aAuthnUserecord class.- Parameters:
use- the value for theuserecord componentsp- the value for thesprecord componentauthnRequestId- the value for theauthnRequestIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
use
Returns the value of theuserecord component.- Returns:
- the value of the
userecord component
-
sp
Returns the value of thesprecord component.- Returns:
- the value of the
sprecord component
-
authnRequestId
Returns the value of theauthnRequestIdrecord component.- Returns:
- the value of the
authnRequestIdrecord component
-