|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.emi.security.authn.x509.helpers.proxy.ProxyGeneratorHelper
public class ProxyGeneratorHelper
Actual implementation of the Proxy generation. The object is for one use only,
i.e. it should not be reused to generate first certificate. It is strongly suggested
to use ProxyGenerator
.
Constructor Summary | |
---|---|
ProxyGeneratorHelper()
|
Method Summary | |
---|---|
static BigInteger |
establishSerial(BaseProxyCertificateOptions param)
For LEGACY proxies returns the serial from the issuing certificate. |
ProxyCertificate |
generate(ProxyCertificateOptions param,
PrivateKey privateKey)
Generate the proxy certificate object from the local certificate. |
X509Certificate[] |
generate(ProxyRequestOptions param,
PrivateKey privateKey)
Generate the proxy certificate object from the received Certificate Signing Request. |
static X500Name |
generateDN(X500Principal parentSubject,
ProxyType type,
boolean limited,
BigInteger serial)
Generate a correct DN for the proxy, depending on its type. |
static KeyPair |
generateKeyPair(int len)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyGeneratorHelper()
Method Detail |
---|
public ProxyCertificate generate(ProxyCertificateOptions param, PrivateKey privateKey) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, CertificateParsingException
param
- proxy parametersprivateKey
- key to sign the proxy
InvalidKeyException
SignatureException
NoSuchAlgorithmException
CertificateEncodingException
CertificateParsingException
public X509Certificate[] generate(ProxyRequestOptions param, PrivateKey privateKey) throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, CertificateParsingException
param
- proxy parametersprivateKey
- key to sign the proxy
InvalidKeyException
SignatureException
NoSuchAlgorithmException
CertificateEncodingException
CertificateParsingException
public static BigInteger establishSerial(BaseProxyCertificateOptions param)
param
-
public static X500Name generateDN(X500Principal parentSubject, ProxyType type, boolean limited, BigInteger serial)
parentSubject
- type
- limited
- serial
-
public static KeyPair generateKeyPair(int len)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |