Record Class BlueMindLogin
java.lang.Object
java.lang.Record
org.exoplatform.bluemind.client.model.BlueMindLogin
- Record Components:
apiRoot- the REST root the session was opened at,scheme://host[:port]— the only address its key may ever be sent toauthKey- the session key, sent inX-BM-ApiKey, and accepted by BlueMind as a password on IMAP, SMTP, CalDAV and its own loginuserUid- the directory entry uid of the authenticated user (LoginResponse.authUser.uid), or null when the answer named nonedomainUid- the uid of their domain (authUser.domainUid, the internal id, not the DNS domain), or null when the answer named nonelatd- the account BlueMind says it is, or nulltimeZone- the user's zone (authUser.settings.timezone), or null
public record BlueMindLogin(String apiRoot, String authKey, String userUid, String domainUid, String latd, String timeZone)
extends Record
What a BlueMind login or sudo answered: the one session record of the org,
merging the calendar side's
Login(apiRoot, key, userUid, domainUid)
and the credentials provider's BluemindSession(authKey, latd), plus
the user's time zone the mail engine reads.
toString() names the session and never its authKey: the key
acts as a user, and under the technical-account provider it opens every
mailbox that account can impersonate (EXO-89650). The latd is the
account BlueMind says the session belongs to; it is not the login that
was asked for (BlueMind resolves the domain to its internal uid and an alias
to the real account), so it is carried for diagnosis and never compared.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiRoot()Returns the value of theapiRootrecord component.authKey()Returns the value of theauthKeyrecord component.Returns the value of thedomainUidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.latd()Returns the value of thelatdrecord component.timeZone()Returns the value of thetimeZonerecord component.toString()Names the session without ever naming its key — safe in logs.userUid()Returns the value of theuserUidrecord component.
-
Constructor Details
-
BlueMindLogin
public BlueMindLogin(String apiRoot, String authKey, String userUid, String domainUid, String latd, String timeZone) Creates an instance of aBlueMindLoginrecord class.- Parameters:
apiRoot- the value for theapiRootrecord componentauthKey- the value for theauthKeyrecord componentuserUid- the value for theuserUidrecord componentdomainUid- the value for thedomainUidrecord componentlatd- the value for thelatdrecord componenttimeZone- the value for thetimeZonerecord component
-
-
Method Details
-
toString
Names the session without ever naming its key — safe in logs. -
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). -
apiRoot
Returns the value of theapiRootrecord component.- Returns:
- the value of the
apiRootrecord component
-
authKey
Returns the value of theauthKeyrecord component.- Returns:
- the value of the
authKeyrecord component
-
userUid
Returns the value of theuserUidrecord component.- Returns:
- the value of the
userUidrecord component
-
domainUid
Returns the value of thedomainUidrecord component.- Returns:
- the value of the
domainUidrecord component
-
latd
Returns the value of thelatdrecord component.- Returns:
- the value of the
latdrecord component
-
timeZone
Returns the value of thetimeZonerecord component.- Returns:
- the value of the
timeZonerecord component
-