Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Outline

Cloud Key Management Service

Google Cloud Key Management Service is a cloud-hosted key management service that lets you manage encryption for your cloud services the same way you do on-premise. You can generate, use, rotate and destroy AES256 encryption keys. These sample Java applications demonstrate how to access the KMS API using the Google Java API Client Libraries.

Quickstart

Install Maven.

Build your project with:

mvn clean compile assembly:single

You can run the quickstart with:

java -cp target/kms-samples-1.0.0-jar-with-dependencies.jar \
    com.example.Quickstart [your-project-id]

and can see the available snippet commands with:

java -cp target/kms-samples-1.0.0-jar-with-dependencies.jar \
    com.example.Snippets

For example:

java -cp target/kms-samples-1.0.0-jar-with-dependencies.jar \
    com.example.Snippets createKeyRing -p <your-project-id> myFirstKeyRing
Morty Proxy This is a proxified and sanitized view of the page, visit original site.