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 V1X509Certificate
- 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 signedX509Certificate
static X509Certificate
generateTestCertificate(KeyPair pair)
Generate version 1 self signedX509Certificate
-
-
-
Method Detail
-
generateTestCertificate
public static X509Certificate generateTestCertificate(KeyPair pair)
Generate version 1 self signedX509Certificate
- 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 signedX509Certificate
- Parameters:
subject
- the subject nameissuer
- the issuer namepair
- the CA key pair- Returns:
- the x509 certificate
- Throws:
Exception
- the exception
-
-