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 Details

    • KeyTools

      public KeyTools()
  • Method Details

    • 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