Package net.handle.util
Class X509HSCertificateGenerator
- java.lang.Object
-
- net.handle.util.X509HSCertificateGenerator
-
public class X509HSCertificateGenerator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description X509HSCertificateGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.cert.X509Certificate
generate(java.lang.String handle, int index, java.security.PublicKey pubKey, java.security.PrivateKey privKey)
static java.security.cert.X509Certificate
generate(java.lang.String handle, java.security.PublicKey pubKey, java.security.PrivateKey privKey)
static java.security.cert.X509Certificate
generate(ValueReference valRef, java.security.PublicKey pubKey, java.security.PrivateKey privKey)
static java.security.cert.X509Certificate
generateWithCnAndUid(java.lang.String cn, java.lang.String uid, java.security.PublicKey pubKey, java.security.PrivateKey privKey)
static java.security.cert.X509Certificate
generateWithUid(java.lang.String uid, java.security.PublicKey pubKey, java.security.PrivateKey privKey)
static java.security.cert.X509Certificate
readCertAsPem(java.io.Reader reader)
static java.security.cert.X509Certificate[]
readCertChainAsPem(java.io.Reader reader)
static void
storeCertAndKey(java.security.KeyStore keyStore, java.security.cert.Certificate cert, java.security.PrivateKey privKey, java.lang.String alias, java.lang.String keyPass)
static void
writeCertAsPem(java.io.Writer writer, java.security.cert.Certificate cert)
-
-
-
Method Detail
-
generate
public static java.security.cert.X509Certificate generate(java.lang.String handle, java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generate
public static java.security.cert.X509Certificate generate(java.lang.String handle, int index, java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generate
public static java.security.cert.X509Certificate generate(ValueReference valRef, java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generateWithUid
public static java.security.cert.X509Certificate generateWithUid(java.lang.String uid, java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generateWithCnAndUid
public static java.security.cert.X509Certificate generateWithCnAndUid(java.lang.String cn, java.lang.String uid, java.security.PublicKey pubKey, java.security.PrivateKey privKey) throws java.lang.Exception
- Throws:
java.lang.Exception
-
storeCertAndKey
public static void storeCertAndKey(java.security.KeyStore keyStore, java.security.cert.Certificate cert, java.security.PrivateKey privKey, java.lang.String alias, java.lang.String keyPass) throws java.security.KeyStoreException
- Throws:
java.security.KeyStoreException
-
writeCertAsPem
public static void writeCertAsPem(java.io.Writer writer, java.security.cert.Certificate cert) throws java.io.IOException
- Throws:
java.io.IOException
-
readCertAsPem
public static java.security.cert.X509Certificate readCertAsPem(java.io.Reader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
readCertChainAsPem
public static java.security.cert.X509Certificate[] readCertChainAsPem(java.io.Reader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
-