Class AvatarUpdate

    • Constructor Detail

      • AvatarUpdate

        public AvatarUpdate()
        Creates an empty avatar update element to indicate, we are not yet ready to advertise an image.
      • AvatarUpdate

        public AvatarUpdate​(String hash)
        Creates an avatar update element with a hash value.
        Parameters:
        hash - The hash.
    • Method Detail

      • getHash

        public final String getHash()
        Gets the SHA-1 hash value of the avatar (hex encoded).
        Returns:
        The hash.
      • getHashAlgorithm

        public final String getHashAlgorithm()
        Description copied from interface: Hashed
        Gets the hash algorithm.
        Specified by:
        getHashAlgorithm in interface Hashed
        Returns:
        The hash algorithm.
      • getHashValue

        public final byte[] getHashValue()
        Description copied from interface: Hashed
        Gets the hash value.
        Specified by:
        getHashValue in interface Hashed
        Returns:
        The hash value.