Class GroupCreateResult


  • public final class GroupCreateResult
    extends java.lang.Object
    Group information from creation.
    • Method Detail

      • getId

        public final GroupId getId()
        get the unique id of the group
      • getName

        public final java.util.Optional<GroupName> getName()
        null if the group has no name, else the group's name
      • getGroupMasterPublicKey

        public final PublicKey getGroupMasterPublicKey()
        public key for encrypting to the group
      • isAdmin

        public final boolean isAdmin()
        true if the calling user is a group admin
      • isMember

        public final boolean isMember()
        true if the calling user is a group member
      • getOwner

        public final UserId getOwner()
        owner of the group
      • getAdminList

        public final GroupUserList getAdminList()
        a GroupUserList of group admins. Group admins can change group membership.
      • getMemberList

        public final GroupUserList getMemberList()
        a GroupUserList of group members. Members of a group can decrypt values encrypted to the group.
      • getCreated

        public final java.util.Date getCreated()
        date and time that the group was created
      • getLastUpdated

        public final java.util.Date getLastUpdated()
        date and time that the group was last updated
      • getNeedsRotation

        public final java.util.Optional<NullableBoolean> getNeedsRotation()
        null if the calling user is not a group admin, else a NullableBoolean of if the group private key needs rotation
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object