public class ProxyGenerator
extends java.lang.Object
Constructor and Description |
---|
ProxyGenerator() |
Modifier and Type | Method and Description |
---|---|
static ProxyCertificate |
generate(ProxyCertificateOptions param,
java.security.PrivateKey privateKey)
Generate the proxy certificate object from the local certificate.
|
static java.security.cert.X509Certificate[] |
generate(ProxyRequestOptions param,
java.security.PrivateKey privateKey)
Generate the proxy certificate object from the received Certificate Signing Request.
|
public static ProxyCertificate generate(ProxyCertificateOptions param, java.security.PrivateKey privateKey) throws java.security.InvalidKeyException, java.security.SignatureException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateParsingException, java.io.IOException
param
- proxy parametersprivateKey
- key to sign the proxyjava.security.InvalidKeyException
- invalid key exceptionjava.security.SignatureException
- signature exceptionjava.security.NoSuchAlgorithmException
- no such algorithm exceptionjava.security.cert.CertificateParsingException
- certificate parsing exceptionjava.io.IOException
- IO exceptionpublic static java.security.cert.X509Certificate[] generate(ProxyRequestOptions param, java.security.PrivateKey privateKey) throws java.security.InvalidKeyException, java.security.SignatureException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateParsingException, java.io.IOException
param
- proxy parametersprivateKey
- key to sign the proxyjava.security.InvalidKeyException
- invalid key exceptionjava.security.SignatureException
- signature exceptionjava.security.NoSuchAlgorithmException
- no such algorithm exceptionjava.security.cert.CertificateParsingException
- certificate parsing exceptionjava.io.IOException
- IO exception