Package org.keycloak.common.util
Class KeyUtils
- java.lang.Object
-
- org.keycloak.common.util.KeyUtils
-
public class KeyUtils extends Object
- Author:
- Stian Thorgersen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createKeyId(Key key)
static PublicKey
extractPublicKey(PrivateKey key)
static KeyPair
generateRsaKeyPair(int keysize)
static SecretKey
loadSecretKey(byte[] secret, String javaAlgorithmName)
-
-
-
Method Detail
-
generateRsaKeyPair
public static KeyPair generateRsaKeyPair(int keysize)
-
extractPublicKey
public static PublicKey extractPublicKey(PrivateKey key)
-
-