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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthnRequestId
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.sp()
Returns the value of thesp
record component.final String
toString()
Returns a string representation of this record class.use()
Returns the value of theuse
record component.
-
Constructor Details
-
AuthnUse
Creates an instance of aAuthnUse
record class.- Parameters:
use
- the value for theuse
record componentsp
- the value for thesp
record componentauthnRequestId
- the value for theauthnRequestId
record 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 theuse
record component.- Returns:
- the value of the
use
record component
-
sp
Returns the value of thesp
record component.- Returns:
- the value of the
sp
record component
-
authnRequestId
Returns the value of theauthnRequestId
record component.- Returns:
- the value of the
authnRequestId
record component
-