Record Class BlueMindSessionKey
java.lang.Object
java.lang.Record
org.exoplatform.bluemind.client.model.BlueMindSessionKey
- Record Components:
server- the declared server registration, as the consumer identifies it (the calendar side's server id, the mail connector's id)exoLogin- the eXo login whose credentials open the session; blank means the call cannot be keyed and opens its own sessiontargetAccount- the account those credentials address on that server; blank means the call cannot be keyedorigin- the consumer's login origin
public record BlueMindSessionKey(String server, String exoLogin, String targetAccount, String origin)
extends Record
Who a kept session acts as — explicit,
equals-compared fields, never
a folded hash.
Handed to another account, a session key is not a stale answer: it is somebody else's identity. So the key names the declared server, the eXo user the credentials are produced for, and the account those credentials address on that server — the user's own for a personal provider, the impersonated target for the technical-account one — so that the same eXo user pointed at another mailbox is another entry. The origin keeps two consumers of one node (calendar, mail) from presenting each other's sessions, whose audit trail on BlueMind names the consumer.
-
Constructor Summary
ConstructorsConstructorDescriptionBlueMindSessionKey(String server, String exoLogin, String targetAccount, String origin) Creates an instance of aBlueMindSessionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exoLogin()Returns the value of theexoLoginrecord component.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.server()Returns the value of theserverrecord component.Returns the value of thetargetAccountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueMindSessionKey
Creates an instance of aBlueMindSessionKeyrecord class.- Parameters:
server- the value for theserverrecord componentexoLogin- the value for theexoLoginrecord componenttargetAccount- the value for thetargetAccountrecord componentorigin- the value for theoriginrecord 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). -
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
exoLogin
Returns the value of theexoLoginrecord component.- Returns:
- the value of the
exoLoginrecord component
-
targetAccount
Returns the value of thetargetAccountrecord component.- Returns:
- the value of the
targetAccountrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-