Record Class BlueMindLogin

java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.BlueMindLogin
Record Components:
apiRoot - the REST root this session was opened at, which is the only address its key may ever be sent to
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 apiRoot, String key, String userUid, String domainUid) extends Record
What a login answered and a session carries: the address it answered at, the key, and who BlueMind says the session belongs to. It is what BlueMindSessionCache keeps for an account.
  • Constructor Details

    • BlueMindLogin

      public BlueMindLogin(String apiRoot, String key, String userUid, String domainUid)
      Creates an instance of a BlueMindLogin record class.
      Parameters:
      apiRoot - the value for the apiRoot record component
      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 where the session was opened and who it belongs to, never its key.
      Specified by:
      toString in class Record
      Returns:
      the REST root and 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.
    • apiRoot

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