Package org.jboss.resteasy.security

## Class KeyTools

- java.lang.Object
- - org.jboss.resteasy.security.KeyTools

-     public class KeyTools
      extends Object

  Class provides utility functions for generation of V1 `X509Certificate`
  Version:
    $Revision: 2 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `KeyTools()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static X509Certificate` | `generateTestCertificate​(String subject, String issuer, KeyPair pair)` | Generate version 1 self signed `X509Certificate`
    `static X509Certificate` | `generateTestCertificate​(KeyPair pair)` | Generate version 1 self signed `X509Certificate`

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

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

- - ### Constructor Detail

    - #### KeyTools

          public KeyTools()

  - ### Method Detail

    - #### generateTestCertificate

          public static X509Certificate generateTestCertificate​(KeyPair pair)

      Generate version 1 self signed `X509Certificate`
      Parameters:
        `pair` - the CA key pair
      Returns:
        the x509 certificate
      Throws:
        `Exception` - the exception

    - #### generateTestCertificate

          public static X509Certificate generateTestCertificate​(String subject,
                                                                String issuer,
                                                                KeyPair pair)

      Generate version 1 self signed `X509Certificate`
      Parameters:
        `subject` - the subject name
        `issuer` - the issuer name
        `pair` - the CA key pair
      Returns:
        the x509 certificate
      Throws:
        `Exception` - the exception