public class MSG extends Object
| Constructor and Description |
|---|
MSG() |
MSG(ArrayList<Triple> triples)
Create new MSG with a vector of triples in it
|
MSG(Triple t)
Create new MSG with one triple in it
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTriple(Triple t)
Adds a triple to this MSG
|
void |
addTriples(ArrayList<Triple> list)
Adds a list of triples to this MSG
|
boolean |
containsTriple(String[] triple)
Checks if MSG contains a certain triple (specified by String array with size 3)
|
boolean |
equals(Object o)
Checks if this MSG is equal to another MSG
|
String |
getCertificate() |
BigInteger |
getHash() |
String |
getSignature() |
ArrayList<Triple> |
getTriples() |
void |
setCertificate(String certificate) |
void |
setHash(BigInteger hash) |
void |
setSignature(String signature) |
void |
setTriples(ArrayList<Triple> triples) |
String |
toString()
Converts MSG to a string (used for printing and debugging)
|
public MSG()
public MSG(Triple t)
t - triple which will be in the MSGpublic BigInteger getHash()
public void setHash(BigInteger hash)
public String getSignature()
public void setSignature(String signature)
public String getCertificate()
public void setCertificate(String certificate)
public void addTriple(Triple t)
t - triple to addpublic void addTriples(ArrayList<Triple> list)
list - list of triples to addpublic boolean containsTriple(String[] triple)
triple - triple as string arraypublic String toString()
Copyright © 2018. All rights reserved.