eu.emi.security.authn.x509.proxy
Class ProxyGenerator
java.lang.Object
eu.emi.security.authn.x509.proxy.ProxyGenerator
public class ProxyGenerator
- extends Object
Utilities to create proxy certificates.
- Author:
- K. Benedyczak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyGenerator
public ProxyGenerator()
generate
public static ProxyCertificate generate(ProxyCertificateOptions param,
PrivateKey privateKey)
throws InvalidKeyException,
SignatureException,
NoSuchAlgorithmException,
CertificateParsingException
- Generate the proxy certificate object from the local certificate.
- Parameters:
param
- proxy parametersprivateKey
- key to sign the proxy
- Returns:
- a newly created proxy certificate, wrapped together with a private key
if it was also generated.
- Throws:
InvalidKeyException
SignatureException
NoSuchAlgorithmException
CertificateParsingException
generate
public static X509Certificate[] generate(ProxyRequestOptions param,
PrivateKey privateKey)
throws InvalidKeyException,
SignatureException,
NoSuchAlgorithmException,
CertificateParsingException
- Generate the proxy certificate object from the received Certificate Signing Request.
- Parameters:
param
- proxy parametersprivateKey
- key to sign the proxy
- Returns:
- chain with the new proxy on the first position
- Throws:
InvalidKeyException
SignatureException
NoSuchAlgorithmException
CertificateParsingException
Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.