@Immutable public class CertificateRegistrationRequest extends AbstractRequest
Constructor and Description |
---|
CertificateRegistrationRequest(java.lang.String entityId,
int certVersion,
java.lang.String certPem)
Constructs a
CertificateRegistrationRequest with the specified entity id, the version
of a certificate and the certificate in PEM format. |
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 |
getCertPem()
Returns the certificate in PEM format.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
validateWith(com.scalar.dl.ledger.crypto.SignatureValidator validator) |
getEntityId, getKeyVersion
public CertificateRegistrationRequest(java.lang.String entityId, int certVersion, java.lang.String certPem)
CertificateRegistrationRequest
with the specified entity id, the version
of a certificate and the certificate in PEM format.entityId
- an entity id that holds a certificatecertVersion
- the version of the certificatecertPem
- the certificate in PEM formatpublic java.lang.String getCertPem()
public void validateWith(com.scalar.dl.ledger.crypto.SignatureValidator validator)
validateWith
in class AbstractRequest
public int hashCode()
hashCode
in class AbstractRequest
public boolean equals(java.lang.Object o)
CertificateRegistrationRequest
and
equals
in class AbstractRequest
o
- an object to be tested for equalitytrue
if the other object is "equal to" this object otherwise false