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 to
authKey - the session key, sent in X-BM-ApiKey, and accepted by BlueMind as a password on IMAP, SMTP, CalDAV and its own login
userUid - the directory entry uid of the authenticated user (LoginResponse.authUser.uid), or null when the answer named none
domainUid - the uid of their domain (authUser.domainUid, the internal id, not the DNS domain), or null when the answer named none
latd - the account BlueMind says it is, or null
timeZone - 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 Details

    • BlueMindLogin

      public BlueMindLogin(String apiRoot, String authKey, String userUid, String domainUid, String latd, String timeZone)
      Creates an instance of a BlueMindLogin record class.
      Parameters:
      apiRoot - the value for the apiRoot record component
      authKey - the value for the authKey record component
      userUid - the value for the userUid record component
      domainUid - the value for the domainUid record component
      latd - the value for the latd record component
      timeZone - the value for the timeZone record component
  • Method Details

    • toString

      public String toString()
      Names the session without ever naming its key — safe in logs.
      Specified by:
      toString in class Record
      Returns:
      the session described by its address and its authenticated user
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • apiRoot

      public String apiRoot()
      Returns the value of the apiRoot record component.
      Returns:
      the value of the apiRoot record component
    • authKey

      public String authKey()
      Returns the value of the authKey record component.
      Returns:
      the value of the authKey record component
    • userUid

      public String userUid()
      Returns the value of the userUid record component.
      Returns:
      the value of the userUid record component
    • domainUid

      public String domainUid()
      Returns the value of the domainUid record component.
      Returns:
      the value of the domainUid record component
    • latd

      public String latd()
      Returns the value of the latd record component.
      Returns:
      the value of the latd record component
    • timeZone

      public String timeZone()
      Returns the value of the timeZone record component.
      Returns:
      the value of the timeZone record component