Class CryptoUtils

java.lang.Object
org.keycloak.crypto.CryptoUtils

public class CryptoUtils extends Object
Utility class for common cryptographic operations and algorithm discovery.
Author:
Forkim Akwichek
  • Constructor Details

    • CryptoUtils

      public CryptoUtils()
  • Method Details

    • getSupportedAsymmetricSignatureAlgorithms

      public static List<String> getSupportedAsymmetricSignatureAlgorithms(KeycloakSession session)
      Returns the supported asymmetric signature algorithms. This method discovers all available SignatureProvider implementations and filters for those that support asymmetric algorithms (RSA, EC, EdDSA, etc.).
      Parameters:
      session - The Keycloak session
      Returns:
      List of asymmetric signature algorithm names