Class HttpJsonKeyManagementServiceStub (2.26.0)

public class HttpJsonKeyManagementServiceStub extends KeyManagementServiceStub

REST stub implementation for the KeyManagementService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > KeyManagementServiceStub > HttpJsonKeyManagementServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonKeyManagementServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonKeyManagementServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonKeyManagementServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonKeyManagementServiceStub
Exceptions
TypeDescription
IOException

create(KeyManagementServiceStubSettings settings)

public static final HttpJsonKeyManagementServiceStub create(KeyManagementServiceStubSettings settings)
Parameter
NameDescription
settingsKeyManagementServiceStubSettings
Returns
TypeDescription
HttpJsonKeyManagementServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonKeyManagementServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsKeyManagementServiceStubSettings
clientContextClientContext

HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonKeyManagementServiceStub(KeyManagementServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonKeyManagementServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsKeyManagementServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

asymmetricDecryptCallable()

public UnaryCallable<AsymmetricDecryptRequest,AsymmetricDecryptResponse> asymmetricDecryptCallable()
Returns
TypeDescription
UnaryCallable<AsymmetricDecryptRequest,AsymmetricDecryptResponse>
Overrides

asymmetricSignCallable()

public UnaryCallable<AsymmetricSignRequest,AsymmetricSignResponse> asymmetricSignCallable()
Returns
TypeDescription
UnaryCallable<AsymmetricSignRequest,AsymmetricSignResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createCryptoKeyCallable()

public UnaryCallable<CreateCryptoKeyRequest,CryptoKey> createCryptoKeyCallable()
Returns
TypeDescription
UnaryCallable<CreateCryptoKeyRequest,CryptoKey>
Overrides

createCryptoKeyVersionCallable()

public UnaryCallable<CreateCryptoKeyVersionRequest,CryptoKeyVersion> createCryptoKeyVersionCallable()
Returns
TypeDescription
UnaryCallable<CreateCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

createImportJobCallable()

public UnaryCallable<CreateImportJobRequest,ImportJob> createImportJobCallable()
Returns
TypeDescription
UnaryCallable<CreateImportJobRequest,ImportJob>
Overrides

createKeyRingCallable()

public UnaryCallable<CreateKeyRingRequest,KeyRing> createKeyRingCallable()
Returns
TypeDescription
UnaryCallable<CreateKeyRingRequest,KeyRing>
Overrides

decryptCallable()

public UnaryCallable<DecryptRequest,DecryptResponse> decryptCallable()
Returns
TypeDescription
UnaryCallable<DecryptRequest,DecryptResponse>
Overrides

destroyCryptoKeyVersionCallable()

public UnaryCallable<DestroyCryptoKeyVersionRequest,CryptoKeyVersion> destroyCryptoKeyVersionCallable()
Returns
TypeDescription
UnaryCallable<DestroyCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

encryptCallable()

public UnaryCallable<EncryptRequest,EncryptResponse> encryptCallable()
Returns
TypeDescription
UnaryCallable<EncryptRequest,EncryptResponse>
Overrides

generateRandomBytesCallable()

public UnaryCallable<GenerateRandomBytesRequest,GenerateRandomBytesResponse> generateRandomBytesCallable()
Returns
TypeDescription
UnaryCallable<GenerateRandomBytesRequest,GenerateRandomBytesResponse>
Overrides

getCryptoKeyCallable()

public UnaryCallable<GetCryptoKeyRequest,CryptoKey> getCryptoKeyCallable()
Returns
TypeDescription
UnaryCallable<GetCryptoKeyRequest,CryptoKey>
Overrides

getCryptoKeyVersionCallable()

public UnaryCallable<GetCryptoKeyVersionRequest,CryptoKeyVersion> getCryptoKeyVersionCallable()
Returns
TypeDescription
UnaryCallable<GetCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getImportJobCallable()

public UnaryCallable<GetImportJobRequest,ImportJob> getImportJobCallable()
Returns
TypeDescription
UnaryCallable<GetImportJobRequest,ImportJob>
Overrides

getKeyRingCallable()

public UnaryCallable<GetKeyRingRequest,KeyRing> getKeyRingCallable()
Returns
TypeDescription
UnaryCallable<GetKeyRingRequest,KeyRing>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getPublicKeyCallable()

public UnaryCallable<GetPublicKeyRequest,PublicKey> getPublicKeyCallable()
Returns
TypeDescription
UnaryCallable<GetPublicKeyRequest,PublicKey>
Overrides

importCryptoKeyVersionCallable()

public UnaryCallable<ImportCryptoKeyVersionRequest,CryptoKeyVersion> importCryptoKeyVersionCallable()
Returns
TypeDescription
UnaryCallable<ImportCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCryptoKeyVersionsCallable()

public UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse> listCryptoKeyVersionsCallable()
Returns
TypeDescription
UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsResponse>
Overrides

listCryptoKeyVersionsPagedCallable()

public UnaryCallable<ListCryptoKeyVersionsRequest,KeyManagementServiceClient.ListCryptoKeyVersionsPagedResponse> listCryptoKeyVersionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCryptoKeyVersionsRequest,ListCryptoKeyVersionsPagedResponse>
Overrides

listCryptoKeysCallable()

public UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysResponse> listCryptoKeysCallable()
Returns
TypeDescription
UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysResponse>
Overrides

listCryptoKeysPagedCallable()

public UnaryCallable<ListCryptoKeysRequest,KeyManagementServiceClient.ListCryptoKeysPagedResponse> listCryptoKeysPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCryptoKeysRequest,ListCryptoKeysPagedResponse>
Overrides

listImportJobsCallable()

public UnaryCallable<ListImportJobsRequest,ListImportJobsResponse> listImportJobsCallable()
Returns
TypeDescription
UnaryCallable<ListImportJobsRequest,ListImportJobsResponse>
Overrides

listImportJobsPagedCallable()

public UnaryCallable<ListImportJobsRequest,KeyManagementServiceClient.ListImportJobsPagedResponse> listImportJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListImportJobsRequest,ListImportJobsPagedResponse>
Overrides

listKeyRingsCallable()

public UnaryCallable<ListKeyRingsRequest,ListKeyRingsResponse> listKeyRingsCallable()
Returns
TypeDescription
UnaryCallable<ListKeyRingsRequest,ListKeyRingsResponse>
Overrides

listKeyRingsPagedCallable()

public UnaryCallable<ListKeyRingsRequest,KeyManagementServiceClient.ListKeyRingsPagedResponse> listKeyRingsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListKeyRingsRequest,ListKeyRingsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,KeyManagementServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

macSignCallable()

public UnaryCallable<MacSignRequest,MacSignResponse> macSignCallable()
Returns
TypeDescription
UnaryCallable<MacSignRequest,MacSignResponse>
Overrides

macVerifyCallable()

public UnaryCallable<MacVerifyRequest,MacVerifyResponse> macVerifyCallable()
Returns
TypeDescription
UnaryCallable<MacVerifyRequest,MacVerifyResponse>
Overrides

rawDecryptCallable()

public UnaryCallable<RawDecryptRequest,RawDecryptResponse> rawDecryptCallable()
Returns
TypeDescription
UnaryCallable<RawDecryptRequest,RawDecryptResponse>
Overrides

rawEncryptCallable()

public UnaryCallable<RawEncryptRequest,RawEncryptResponse> rawEncryptCallable()
Returns
TypeDescription
UnaryCallable<RawEncryptRequest,RawEncryptResponse>
Overrides

restoreCryptoKeyVersionCallable()

public UnaryCallable<RestoreCryptoKeyVersionRequest,CryptoKeyVersion> restoreCryptoKeyVersionCallable()
Returns
TypeDescription
UnaryCallable<RestoreCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateCryptoKeyCallable()

public UnaryCallable<UpdateCryptoKeyRequest,CryptoKey> updateCryptoKeyCallable()
Returns
TypeDescription
UnaryCallable<UpdateCryptoKeyRequest,CryptoKey>
Overrides

updateCryptoKeyPrimaryVersionCallable()

public UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey> updateCryptoKeyPrimaryVersionCallable()
Returns
TypeDescription
UnaryCallable<UpdateCryptoKeyPrimaryVersionRequest,CryptoKey>
Overrides

updateCryptoKeyVersionCallable()

public UnaryCallable<UpdateCryptoKeyVersionRequest,CryptoKeyVersion> updateCryptoKeyVersionCallable()
Returns
TypeDescription
UnaryCallable<UpdateCryptoKeyVersionRequest,CryptoKeyVersion>
Overrides