Class AvatarUpdate
- java.lang.Object
-
- rocks.xmpp.extensions.vcard.avatar.model.AvatarUpdate
-
- All Implemented Interfaces:
Hashed
public final class AvatarUpdate extends Object implements Hashed
The implementation of the<x/>
element in thevcard-temp:x:update
namespace.- See Also:
- XEP-0153: vCard-Based Avatars, XML Schema
-
-
Constructor Summary
Constructors Constructor Description AvatarUpdate()
Creates an empty avatar update element to indicate, we are not yet ready to advertise an image.AvatarUpdate(String hash)
Creates an avatar update element with a hash value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHash()
Gets the SHA-1 hash value of the avatar (hex encoded).String
getHashAlgorithm()
Gets the hash algorithm.byte[]
getHashValue()
Gets the hash value.String
toString()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
vcard-temp:x:update- See Also:
- Constant Field Values
-
-
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 interfaceHashed
- Returns:
- The hash algorithm.
-
getHashValue
public final byte[] getHashValue()
Description copied from interface:Hashed
Gets the hash value.- Specified by:
getHashValue
in interfaceHashed
- Returns:
- The hash value.
-
-