
Aws Sdk Java V2 Kms
This one handles AWS KMS operations in Java applications when you need proper encryption key management instead of rolling your own crypto. It covers the envelope encryption pattern for large data (generate a data key, encrypt locally, store the encrypted key), direct encrypt/decrypt for small payloads under 4KB, and digital signatures with asymmetric keys. The code examples include verification checks after key operations, which is good because KMS calls can fail silently if permissions are misconfigured. Useful if you're building a Spring Boot app that needs to encrypt database fields, sign API tokens, or implement automatic key rotation without managing raw key material yourself.
- skills.sh installs
- 3.8K
- GitHub stars
- 369
- last updated
- Aug 21, 2026
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-kms --agent claude-codeInstalls into .claude/skills of the current project.
Files
AWS SDK for Java 2.x - AWS KMS (Key Management Service)
Overview
Provides AWS KMS patterns using AWS SDK for Java 2.x. Covers key management, encryption/decryption, envelope encryption, digital signatures, and Spring Boot integration.
Instructions
- Set Up IAM Permissions - Grant kms:* actions with least privilege
- Create KMS Client - Instantiate KmsClient with region and credentials
- Create Keys - Use createKey() → Verify key state is ENABLED before proceeding
- Set Key Policies - Define key usage permissions → Test access before production
- Encrypt Data - Use encrypt() for data <4KB; Verify ciphertext is not empty
- Envelope Encryption - For larger data, use generateDataKey() → Verify data key generation succeeded
- Digital Signatures - Create signing keys → Verify signatureValid=true after sign/verify
- Key Rotation - Enable auto-rotation → Confirm rotation schedule is active
When to Use
Sponsors
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Categories
- Security, Cloud & Infrastructure, Java & JVM
- First seen
- May 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 102- Aws Sdk Java V2 Rds3.8K
- Nestjs Drizzle Crud Generator3.8K
- Aws Lambda Python Integration3.8K
- Aws Lambda Typescript Integration3.7K
- Sonarqube Mcp3.7K
- Better Auth3.7K
- Aws Lambda Java Integration3.7K
- Aws Lambda Php Integration3.7K
- Spring Boot Project Creator3.7K
- Docs Updater3.7K
- Notebooklm3.7K
- Github Issue Workflow3.6K
- Dynamodb Toolbox Patterns3.6K
- Memory Md Management3.6K
- Graalvm Native Image3.6K
- Adr Drafting3.6K
- Gemini3.6K
- Copilot Cli3.6K
- Codex3.5K
- Wiremock Standalone Docker3.5K
- Aws Cdk3.5K
- Learn3.5K
- Qwen Coder3.4K
- Bug Fix Brief3.1K