Record Class BlueMindLogin

java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.BlueMindLogin
Record Components:
key - the session key, sent in X-BM-ApiKey
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 (LoginResponse.authUser.domainUid), or null when the answer named none

public record BlueMindLogin(String key, String userUid, String domainUid) extends Record
What a login answered and a session carries: the key, and who BlueMind says the session belongs to.
  • Constructor Details

    • BlueMindLogin

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

    • toString

      public String toString()
      Names who the session belongs to, never its key.
      Specified by:
      toString in class Record
      Returns:
      the user and domain uids
    • 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.
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key 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