org.jboss.resteasy.security

## Class KeyTools

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

-     public class KeyTools
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyTools()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static X509Certificate` | `generateTestCertificate(KeyPair pair)`
    `static X509Certificate` | `generateTestCertificate(String subject, String issuer, KeyPair pair)`

    - ### 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(String subject,
                                                String issuer,
                                                KeyPair pair)
                                                         throws InvalidKeyException,
                                                                NoSuchProviderException,
                                                                SignatureException

      Throws:
        `InvalidKeyException`
        `NoSuchProviderException`
        `SignatureException`

    - #### generateTestCertificate

          public static X509Certificate generateTestCertificate(KeyPair pair)
                                                         throws InvalidKeyException,
                                                                NoSuchProviderException,
                                                                SignatureException

      Throws:
        `InvalidKeyException`
        `NoSuchProviderException`
        `SignatureException`

Copyright © 2014. All Rights Reserved.