@Deprecated
@Immutable
public class AssetProof
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetProof.Builder
Deprecated.
|
static class |
AssetProof.Key
Deprecated.
|
static class |
AssetProof.Range
Deprecated.
|
| Constructor and Description |
|---|
AssetProof(com.scalar.dl.rpc.AssetProof proof)
Deprecated.
Constructs an
AssetProof with the specified AssetProof |
AssetProof(AssetProof proof)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Deprecated.
Indicates whether some other object is "equal to" this object.
|
int |
getAge()
Deprecated.
Returns the asset entry's age assigned by the server.
|
byte[] |
getHash()
Deprecated.
Returns the hash of the asset entry.
|
java.lang.String |
getId()
Deprecated.
Returns the asset's id.
|
javax.json.JsonObject |
getInput()
Deprecated.
|
AssetProof.Key |
getKey()
Deprecated.
Returns the
Key of the AssetProof. |
java.lang.String |
getNonce()
Deprecated.
Returns the nonce of the asset entry.
|
byte[] |
getPrevHash()
Deprecated.
Returns the prev_hash of the asset entry.
|
byte[] |
getSignature()
Deprecated.
Returns the signature of the proof entry.
|
int |
hashCode()
Deprecated.
Returns a hash code value for the object.
|
static AssetProof.Builder |
newBuilder()
Deprecated.
|
static byte[] |
serialize(java.lang.String id,
int age,
java.lang.String nonce,
javax.json.JsonObject input,
byte[] hash,
byte[] prevHash)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
void |
validateWith(SignatureValidator validator)
Deprecated.
Validates if the proof is not tampered.
|
boolean |
valueEquals(java.lang.Object o)
Deprecated.
Indicates whether some other object is "equal to" this object except for signature.
|
public AssetProof(com.scalar.dl.rpc.AssetProof proof)
AssetProof with the specified AssetProofproof - a com.scalar.rpc.AssetProof objectpublic AssetProof(AssetProof proof)
public AssetProof.Key getKey()
Key of the AssetProof.Key of the AssetProofpublic java.lang.String getId()
public int getAge()
public java.lang.String getNonce()
public javax.json.JsonObject getInput()
public byte[] getHash()
@Nullable public byte[] getPrevHash()
public byte[] getSignature()
public void validateWith(SignatureValidator validator)
validator - a SignatureValidatorSignatureException - if the proof is invalid.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
AssetProof, and
equals in class java.lang.Objecto - an object to be tested for equalitytrue if the other object is "equal to" this object otherwise falsepublic boolean valueEquals(java.lang.Object o)
AssetProof, and
o - an object to be tested for equalitytrue if the other object is "equal to" this object otherwise falsepublic java.lang.String toString()
toString in class java.lang.Objectpublic static AssetProof.Builder newBuilder()
public static byte[] serialize(java.lang.String id,
int age,
java.lang.String nonce,
javax.json.JsonObject input,
byte[] hash,
byte[] prevHash)