Class KeycloakKeyService


  • public class KeycloakKeyService
    extends Object
    • Constructor Detail

      • KeycloakKeyService

        public KeycloakKeyService()
    • Method Detail

      • readKeyPair

        public static KeyPair readKeyPair​(KeycloakKeyConfiguration config)
        Read the key pair from the configured public and private key file names which must be available as resource from this class.
        Parameters:
        config - - The key service configuration
        Returns:
        The read key pair from the file system
      • generateKeyPair

        public static KeyPair generateKeyPair​(KeycloakKeyConfiguration config)
        Generates a new key pair with the configured algorithm and writes it to the configured public and private key file names with must be available as resource from this class.
        Parameters:
        config - - The key service configuration
        Returns:
        The new generated key pair