public abstract class AbstractRequest
extends java.lang.Object
Constructor and Description |
---|
AbstractRequest(java.lang.String entityId,
int keyVersion) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this object.
|
java.lang.String |
getEntityId()
Returns the entity ID.
|
int |
getKeyVersion()
Returns the version of a digital signature certificate or a HMAC secret key.
|
int |
hashCode()
Returns a hash code value for the object.
|
abstract void |
validateWith(com.scalar.dl.ledger.crypto.SignatureValidator validator) |
public AbstractRequest(java.lang.String entityId, int keyVersion)
public java.lang.String getEntityId()
public int getKeyVersion()
public abstract void validateWith(com.scalar.dl.ledger.crypto.SignatureValidator validator)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
AbstractRequest
and
equals
in class java.lang.Object
o
- an object to be tested for equalitytrue
if the other object is "equal to" this object otherwise false