public class Authority extends Object implements ByteTransformable, SignatureObject
| Constructor and Description |
|---|
Authority()
Constructor thats set required values to avoid null pointer exceptions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherAuthority) |
Map<AccountName,Integer> |
getAccountAuths() |
Map<PublicKey,Integer> |
getKeyAuths() |
long |
getWeightThreshold() |
int |
hashCode() |
boolean |
isEmpty()
Returns
true if, and only if, the account name has more than
0 characters. |
boolean |
isImpossible()
Check if the authority is impossible.
|
void |
setAccountAuths(Map<AccountName,Integer> accountAuths) |
void |
setKeyAuths(Map<PublicKey,Integer> keyAuths) |
void |
setWeightThreshold(long weightThreshold) |
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
public Authority()
public long getWeightThreshold()
public void setWeightThreshold(long weightThreshold)
weightThreshold - The weight threshold.public Map<AccountName,Integer> getAccountAuths()
public void setAccountAuths(Map<AccountName,Integer> accountAuths)
accountAuths - The account auths.public Map<PublicKey,Integer> getKeyAuths()
public void setKeyAuths(Map<PublicKey,Integer> keyAuths)
keyAuths - Map key auths.public boolean isImpossible()
true if the authority is impossible, otherwise
false.public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformabletoByteArray in interface ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.public boolean isEmpty()
true if, and only if, the account name has more than
0 characters.true if the account name has more than 0,
otherwise falseCopyright © 2019. All rights reserved.