Class DefaultGroupKey

  • All Implemented Interfaces:
    GroupKey

    public class DefaultGroupKey
    extends Object
    implements GroupKey
    Default implementation of group key interface.
    • Constructor Detail

      • DefaultGroupKey

        public DefaultGroupKey​(byte[] key)
    • Method Detail

      • key

        public byte[] key()
        Description copied from interface: GroupKey
        Returns the byte representation of key.
        Specified by:
        key in interface GroupKey
        Returns:
        byte array
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns a hex string representation of the byte array that is used as a group key. This solution was adapted from http://stackoverflow.com/questions/9655181/
        Overrides:
        toString in class Object