New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Reusable AWS KMS patterns with AWS SDK for Java 2.x covering keys, envelope encryption, and digital signatures.

skills.sh installs
3.9K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers KMS client setup, key creation and state management, direct encrypt and decrypt, and envelope encryption with data keys
  • Includes sync and async client builders, with retry configuration and region and credential provider wiring shown
  • Provides digital signing with RSA_2048 keys and RSASSA_PSS_SHA_256 signatures, plus signature verification
  • Designed for Java services that need KMS-backed encryption, including Spring Boot applications

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-kms -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

  1. Set Up IAM Permissions - Grant kms:* actions with least privilege
  2. Create KMS Client - Instantiate KmsClient with region and credentials
  3. Create Keys - Use createKey() → Verify key state is ENABLED before proceeding
  4. Set Key Policies - Define key usage permissions → Test access before production
  5. Encrypt Data - Use encrypt() for data <4KB; Verify ciphertext is not empty
  6. Envelope Encryption - For larger data, use generateDataKey() → Verify data key generation succeeded
  7. Digital Signatures - Create signing keys → Verify signatureValid=true after sign/verify
  8. Key Rotation - Enable auto-rotation → Confirm rotation schedule is active

When to Use

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Java & JVM, Security
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Aws Sdk Java V2 Kms

More Java & JVM