Class HmacKey.HmacKeyMetadata (2.43.1)

public static class HmacKey.HmacKeyMetadata implements Serializable

The metadata for a service account HMAC key. This class holds all data associated with an HMAC key other than the secret key.

Inheritance

Object > HmacKey.HmacKeyMetadata

Implements

Serializable

Static Methods

newBuilder(ServiceAccount serviceAccount)

public static HmacKey.HmacKeyMetadata.Builder newBuilder(ServiceAccount serviceAccount)
Parameter
Name Description
serviceAccount ServiceAccount
Returns
Type Description
HmacKey.HmacKeyMetadata.Builder

of(ServiceAccount serviceAccount, String accessId, String projectId)

public static HmacKey.HmacKeyMetadata of(ServiceAccount serviceAccount, String accessId, String projectId)
Parameters
Name Description
serviceAccount ServiceAccount
accessId String
projectId String
Returns
Type Description
HmacKey.HmacKeyMetadata

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAccessId()

public String getAccessId()

Returns the access id for this HMAC key. This is the id needed to get or delete the key. *

Returns
Type Description
String

getCreateTime() (deprecated)

public Long getCreateTime()

Deprecated. Use #getCreateTimeOffsetDateTime()

Returns the creation time of this HMAC key.

Returns
Type Description
Long

getCreateTimeOffsetDateTime()

public OffsetDateTime getCreateTimeOffsetDateTime()

Returns the creation time of this HMAC key. *

Returns
Type Description
OffsetDateTime

getEtag()

public String getEtag()

Returns HTTP 1.1 Entity tag for this HMAC key. See Also: Entity Tags

Returns
Type Description
String

getId()

public String getId()

Returns the resource name of this HMAC key. *

Returns
Type Description
String

getProjectId()

public String getProjectId()

Returns the project id associated with this HMAC key. *

Returns
Type Description
String

getServiceAccount()

public ServiceAccount getServiceAccount()

Returns the service account associated with this HMAC key. *

Returns
Type Description
ServiceAccount

getState()

public HmacKey.HmacKeyState getState()

Returns the current state of this HMAC key. *

Returns
Type Description
HmacKey.HmacKeyState

getUpdateTime() (deprecated)

public Long getUpdateTime()

Deprecated. Use #getUpdateTimeOffsetDateTime()

Returns the last updated time of this HMAC key.

Returns
Type Description
Long

getUpdateTimeOffsetDateTime()

public OffsetDateTime getUpdateTimeOffsetDateTime()

Returns the last updated time of this HMAC key. *

Returns
Type Description
OffsetDateTime

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public HmacKey.HmacKeyMetadata.Builder toBuilder()
Returns
Type Description
HmacKey.HmacKeyMetadata.Builder