Bruce is an ergonomic, lightweight, pure Java wrapper around the Java Cryptography API.
Sure. Here's an example for base64 encoded digital signatures.
KeyStore keystore = keystore("classpath:keystore.p12", "password");
PrivateKey privateKey = privateKey(keystore, "alice", "password");
EncodingSigner signer = signer(privateKey, "SHA512withRSA", BASE64);
String signature = signer.sign("Hi Bob!");
Bruce tries to reduce boilerplate to a minimum, so you can focus on your code.