public class CloudKMS.Projects.Locations.KeyRings.CryptoKeys
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions
The "cryptoKeyVersions" collection of methods.
|
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions |
class |
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion |
| Constructor and Description |
|---|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys() |
| Modifier and Type | Method and Description |
|---|---|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create |
create(java.lang.String parent,
CryptoKey content)
Create a new CryptoKey within a KeyRing.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions |
cryptoKeyVersions()
An accessor for creating requests from the CryptoKeyVersions collection.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt |
decrypt(java.lang.String name,
DecryptRequest content)
Decrypt data that was protected by Encrypt.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt |
encrypt(java.lang.String name,
EncryptRequest content)
Encrypt data, so that it can only be recovered by a call to Decrypt.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get |
get(java.lang.String name)
Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy |
getIamPolicy(java.lang.String resource)
Gets the access control policy for a resource.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List |
list(java.lang.String parent)
Lists CryptoKeys.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch |
patch(java.lang.String name,
CryptoKey content)
Update a CryptoKey.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion |
updatePrimaryVersion(java.lang.String name,
UpdateCryptoKeyPrimaryVersionRequest content)
Update the version of a CryptoKey that will be used in Encrypt
Create a request for the method "cryptoKeys.updatePrimaryVersion".
|
public CloudKMS.Projects.Locations.KeyRings.CryptoKeys()
public CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create create(java.lang.String parent, CryptoKey content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The name of the KeyRing associated with the
CryptoKeys.content - the CryptoKeyjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt decrypt(java.lang.String name, DecryptRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the CryptoKey to use for decryption.
The server will choose the
appropriate version.content - the DecryptRequestjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt encrypt(java.lang.String name, EncryptRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the CryptoKey or CryptoKeyVersion
to use for encryption.
If a
CryptoKey is specified, the server will use its
primary version.content - the EncryptRequestjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the CryptoKey to get.java.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being requested.
See the operation documentation for
the appropriate value for this field.java.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List list(java.lang.String parent) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The resource name of the KeyRing to list, in the format
`projects/locations/keyRings`.java.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch patch(java.lang.String name, CryptoKey content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Output only. The resource name for this CryptoKey in the format
`projects/locations/keyRings/cryptoKeys`.content - the CryptoKeyjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy setIamPolicy(java.lang.String resource, SetIamPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being specified.
See the operation documentation for
the appropriate value for this field.content - the SetIamPolicyRequestjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions testIamPermissions(java.lang.String resource, TestIamPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy detail is being requested.
See the operation
documentation for the appropriate value for this field.content - the TestIamPermissionsRequestjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion updatePrimaryVersion(java.lang.String name, UpdateCryptoKeyPrimaryVersionRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.name - The resource name of the CryptoKey to update.content - the UpdateCryptoKeyPrimaryVersionRequestjava.io.IOExceptionpublic CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions cryptoKeyVersions()
The typical use is:
CloudKMS cloudkms = new CloudKMS(...);CloudKMS.CryptoKeyVersions.List request = cloudkms.cryptoKeyVersions().list(parameters ...)