Class SecretSharingWrapper.SecretWithLabel

  • Enclosing class:
    SecretSharingWrapper

    public static class SecretSharingWrapper.SecretWithLabel
    extends java.lang.Object
    Class for packing a secret together with a descriptive label
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] encode()
      Encode the message to a byte array using protocol buffers
      java.lang.String getLabel()
      Getter method for label
      byte[] getSecret()
      Getter method for secret
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • encode

        public byte[] encode()
        Encode the message to a byte array using protocol buffers
        Returns:
        the encoded message containing both secret and label
      • getSecret

        public byte[] getSecret()
        Getter method for secret
        Returns:
        the secret given in the constructor
      • getLabel

        public java.lang.String getLabel()
        Getter method for label
        Returns:
        the label given in the constructor