Class HmacKey.HmacKeyMetadata (2.9.0)

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
NameDescription
serviceAccountServiceAccount
Returns
TypeDescription
HmacKey.HmacKeyMetadata.Builder

of(ServiceAccount serviceAccount, String accessId, String projectId)

public static HmacKey.HmacKeyMetadata of(ServiceAccount serviceAccount, String accessId, String projectId)
Parameters
NameDescription
serviceAccountServiceAccount
accessIdString
projectIdString
Returns
TypeDescription
HmacKey.HmacKeyMetadata

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
String

getCreateTime()

public Long getCreateTime()

Returns the creation time of this HMAC key. *

Returns
TypeDescription
Long

getEtag()

public String getEtag()

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

Returns
TypeDescription
String

getId()

public String getId()

Returns the resource name of this HMAC key. *

Returns
TypeDescription
String

getProjectId()

public String getProjectId()

Returns the project id associated with this HMAC key. *

Returns
TypeDescription
String

getServiceAccount()

public ServiceAccount getServiceAccount()

Returns the service account associated with this HMAC key. *

Returns
TypeDescription
ServiceAccount

getState()

public HmacKey.HmacKeyState getState()

Returns the current state of this HMAC key. *

Returns
TypeDescription
HmacKey.HmacKeyState

getUpdateTime()

public Long getUpdateTime()

Returns the last updated time of this HMAC key. *

Returns
TypeDescription
Long

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public HmacKey.HmacKeyMetadata.Builder toBuilder()
Returns
TypeDescription
HmacKey.HmacKeyMetadata.Builder

toPb()

public HmacKeyMetadata toPb()
Returns
TypeDescription
com.google.api.services.storage.model.HmacKeyMetadata