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
KeyStoreException
public ProxyCertificateImpl(X509Certificate[] chain)
public X509Certificate[] getCertificateChain()
ProxyCertificate
getCertificateChain
in interface ProxyCertificate
public PrivateKey getPrivateKey() throws IllegalStateException
ProxyCertificate
getPrivateKey
in interface ProxyCertificate
IllegalStateException
- if the private and public keys were not generatedpublic X509Credential getCredential() throws IllegalStateException
ProxyCertificate
getCredential
in interface ProxyCertificate
X509Credential
IllegalStateException
- if the private and public keys were not generatedpublic boolean hasPrivateKey()
hasPrivateKey
in interface ProxyCertificate
ProxyCertificate.getPrivateKey()
and ProxyCertificate.getCredential()
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.