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 and Description
    --- | ---
    `static String` | `createKeyId(Key key)`
    `static PublicKey` | `extractPublicKey(PrivateKey key)`
    `static KeyPair` | `generateRsaKeyPair(int keysize)`
    `static SecretKey` | `loadSecretKey(byte[] secret, String javaAlgorithmName)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### 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)

Copyright © 2021 JBoss by Red Hat. All rights reserved.