public class ProxyCSRGenerator extends Object
The following rules are applied basing on the parameters object:
Constructor and Description |
---|
ProxyCSRGenerator() |
Modifier and Type | Method and Description |
---|---|
static ProxyCSR |
generate(ProxyCertificateOptions param)
Generate the proxy certificate object.
|
static ProxyCSR |
generate(ProxyCertificateOptions param,
PrivateKey signingKey)
Generate the proxy certificate object.
|
public static ProxyCSR generate(ProxyCertificateOptions param) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, CertificateEncodingException
param
- request creation parametersInvalidKeyException
- invalid key exceptionSignatureException
- signature exceptionNoSuchAlgorithmException
- no such algorithm exceptionCertificateEncodingException
- certificate encoding exceptionIllegalArgumentException
- when signingKey is null and public key was manully setpublic static ProxyCSR generate(ProxyCertificateOptions param, PrivateKey signingKey) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, CertificateEncodingException
ProxyCertificateOptions
parameter contains a manually set public key.param
- request creation parameterssigningKey
- private keyInvalidKeyException
- invalid key exceptionSignatureException
- signature exceptionNoSuchAlgorithmException
- no such algorithm exceptionCertificateEncodingException
- certificate encoding exceptionIllegalArgumentException
- when signingKey is null and public key was manually setCopyright © 2012-2017 European Middleware Initiative. All Rights Reserved.