@Immutable
public class SecretEntry
extends java.lang.Object
SecretEntry
has:
Modifier and Type | Class and Description |
---|---|
static class |
SecretEntry.Key |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENTITY_ID |
static java.lang.String |
KEY_VERSION |
static java.lang.String |
REGISTERED_AT |
static java.lang.String |
SECRET_KEY |
Constructor and Description |
---|
SecretEntry(java.lang.String entityId,
int keyVersion,
java.lang.String secretKey,
long registeredAt)
Constructs a
SecretEntry with the specified entity ID, secret key version, secret key,
and time the secret was registered at. |
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.
|
SecretEntry.Key |
getKey()
Returns the
Key of the SecretEntry . |
int |
getKeyVersion()
Returns the secret key version.
|
long |
getRegisteredAt()
Returns the time the secret key was registered at.
|
java.lang.String |
getSecretKey()
Returns the secret key.
|
int |
hashCode()
Returns a hash code value for the object.
|
public static final java.lang.String ENTITY_ID
public static final java.lang.String KEY_VERSION
public static final java.lang.String SECRET_KEY
public static final java.lang.String REGISTERED_AT
public SecretEntry(java.lang.String entityId, int keyVersion, java.lang.String secretKey, long registeredAt)
SecretEntry
with the specified entity ID, secret key version, secret key,
and time the secret was registered at.entityId
- the ID of an entitykeyVersion
- the version of a secretsecretKey
- a secret keyregisteredAt
- the time the contract was registered atpublic SecretEntry.Key getKey()
Key
of the SecretEntry
. A Key is made up of the entity ID and the
secret key version.Key
of the SecretEntry
public java.lang.String getEntityId()
public int getKeyVersion()
public java.lang.String getSecretKey()
public long getRegisteredAt()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
SecretEntry
and both instances have the same
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