Class SecretSharingWrapper.SecretWithLabel
- java.lang.Object
-
- org.magmacollective.darkcrystal.secretsharingwrapper.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 buffersjava.lang.String
getLabel()
Getter method for labelbyte[]
getSecret()
Getter method for secret
-
-
-
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
-
-