Package net.shibboleth.sp.authn.impl
Record Class CachedAgentAuthentication
java.lang.Object
java.lang.Record
net.shibboleth.sp.authn.impl.CachedAgentAuthentication
- Record Components:
agentId- agent IDaddress- address for which the session is validexpiration- session expiration
public record CachedAgentAuthentication(@Nonnull String agentId, @Nonnull String address, @Nonnull Instant expiration)
extends Record
A record capturing cached authentication state for an agent.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCachedAgentAuthentication(String agentId, String address, Instant expiration) Creates an instance of aCachedAgentAuthenticationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.agentId()Returns the value of theagentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpirationrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
agentId
The field for theagentIdrecord component. -
address
The field for theaddressrecord component. -
expiration
The field for theexpirationrecord component.
-
-
Constructor Details
-
CachedAgentAuthentication
public CachedAgentAuthentication(@Nonnull String agentId, @Nonnull String address, @Nonnull Instant expiration) Creates an instance of aCachedAgentAuthenticationrecord class.- Parameters:
agentId- the value for theagentIdrecord componentaddress- the value for theaddressrecord componentexpiration- the value for theexpirationrecord 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). -
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
expiration
Returns the value of theexpirationrecord component.- Returns:
- the value of the
expirationrecord component
-