public class ProxyCertificateImpl extends Object implements ProxyCertificate
ProxyCertificate interface.| Constructor and Description |
|---|
ProxyCertificateImpl(X509Certificate[] chain) |
ProxyCertificateImpl(X509Certificate[] chain,
PrivateKey privateKey) |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate[] |
getCertificateChain()
Returns the certificate chain of the proxy.
|
X509Credential |
getCredential()
Returns the X509Credential wrapping the generated private key and proxy certificate.
|
PrivateKey |
getPrivateKey()
Returns the generated private key of this proxy.
|
boolean |
hasPrivateKey() |
public ProxyCertificateImpl(X509Certificate[] chain, PrivateKey privateKey) throws KeyStoreException
KeyStoreExceptionpublic ProxyCertificateImpl(X509Certificate[] chain)
public X509Certificate[] getCertificateChain()
ProxyCertificategetCertificateChain in interface ProxyCertificatepublic PrivateKey getPrivateKey() throws IllegalStateException
ProxyCertificategetPrivateKey in interface ProxyCertificateIllegalStateException - if the private and public keys were not generatedpublic X509Credential getCredential() throws IllegalStateException
ProxyCertificategetCredential in interface ProxyCertificateX509CredentialIllegalStateException - if the private and public keys were not generatedpublic boolean hasPrivateKey()
hasPrivateKey in interface ProxyCertificateProxyCertificate.getPrivateKey() and ProxyCertificate.getCredential()Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.