org.wildfly.swarm.microprofile.jwtauth.deployment.auth

## Class KeyUtils

- java.lang.Object
- - org.wildfly.swarm.microprofile.jwtauth.deployment.auth.KeyUtils

-     public class KeyUtils
      extends Object

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static PrivateKey` | `decodePrivateKey(String pemEncoded)`
    `static PublicKey` | `decodePublicKey(String pemEncoded)`
    `static KeyPair` | `generateKeyPair(int keySize)`
    `static PrivateKey` | `readPrivateKey(String pemResName)`
    `static PublicKey` | `readPublicKey(String pemResName)`

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

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

- - ### Method Detail

    - #### readPrivateKey

          public static PrivateKey readPrivateKey(String pemResName)
                                           throws Exception

      Throws:
        `Exception`

    - #### readPublicKey

          public static PublicKey readPublicKey(String pemResName)
                                         throws Exception

      Throws:
        `Exception`

    - #### generateKeyPair

          public static KeyPair generateKeyPair(int keySize)
                                         throws NoSuchAlgorithmException

      Throws:
        `NoSuchAlgorithmException`

    - #### decodePrivateKey

          public static PrivateKey decodePrivateKey(String pemEncoded)
                                             throws Exception

      Throws:
        `Exception`

    - #### decodePublicKey

          public static PublicKey decodePublicKey(String pemEncoded)
                                           throws Exception

      Throws:
        `Exception`

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