Class KeyUtils

java.lang.Object
org.keycloak.common.util.KeyUtils

public class KeyUtils extends Object
Author:
Stian Thorgersen
  • Method Details

    • loadSecretKey

      public static SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName)
    • generateRsaKeyPair

      public static KeyPair generateRsaKeyPair(int keysize)
    • extractPublicKey

      public static PublicKey extractPublicKey(PrivateKey key)
    • createKeyId

      public static String createKeyId(Key key)