Interface CryptoService


public interface CryptoService
Provides methods for:
  • Creating and using RSA and ECDH key encapsulation mechanism
  • Reading X509 certificates and private-keys (encrypted or not encrypted)
  • Reading JKS and PKCS12 key-stores
  • Creating JKS and PKCS12 key-stores based on trusted certificates or private-key and certificate chain
  • Generating RSA (4096 bit), EC (secp256r1, secp384r1, secp521r1, X25519, X448) key-pairs
  • Validating key-pairs to check if a private-key belongs to a public-key
  • Validating certificates
  • Creating SSLContexts based on a key-store with trusted certificates and/or a key-store with private-key and certificate chain