Package com.google.cloud.storage
Class HmacKey.HmacKeyMetadata
java.lang.Object
com.google.cloud.storage.HmacKey.HmacKeyMetadata
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HmacKey
The metadata for a service account HMAC key. This class holds all data associated with an HMAC
key other than the secret key.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder forHmacKeyMetadata
objects. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the access id for this HMAC key.Deprecated.Returns the creation time of this HMAC key.getEtag()
Returns HTTP 1.1 Entity tag for this HMAC key.getId()
Returns the resource name of this HMAC key.Returns the project id associated with this HMAC key.Returns the service account associated with this HMAC key.getState()
Returns the current state of this HMAC key.Deprecated.Returns the last updated time of this HMAC key.int
hashCode()
newBuilder
(ServiceAccount serviceAccount) static HmacKey.HmacKeyMetadata
of
(ServiceAccount serviceAccount, String accessId, String projectId)
-
Method Details
-
newBuilder
-
toBuilder
-
of
public static HmacKey.HmacKeyMetadata of(ServiceAccount serviceAccount, String accessId, String projectId) -
hashCode
public int hashCode() -
equals
-
getAccessId
Returns the access id for this HMAC key. This is the id needed to get or delete the key. * -
getEtag
Returns HTTP 1.1 Entity tag for this HMAC key.- See Also:
-
getId
Returns the resource name of this HMAC key. * -
getProjectId
Returns the project id associated with this HMAC key. * -
getServiceAccount
Returns the service account associated with this HMAC key. * -
getState
Returns the current state of this HMAC key. * -
getCreateTime
Deprecated.Returns the creation time of this HMAC key. -
getCreateTimeOffsetDateTime
Returns the creation time of this HMAC key. * -
getUpdateTime
Deprecated.Returns the last updated time of this HMAC key. -
getUpdateTimeOffsetDateTime
Returns the last updated time of this HMAC key. *
-
getCreateTimeOffsetDateTime()