|
||||||||||
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.ProxyCertificateImpl
public class ProxyCertificateImpl
Default implementation of the ProxyCertificate
interface.
Constructor Summary | |
---|---|
ProxyCertificateImpl(X509Certificate[] chain)
|
|
ProxyCertificateImpl(X509Certificate[] chain,
PrivateKey privateKey)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyCertificateImpl(X509Certificate[] chain, PrivateKey privateKey) throws KeyStoreException
KeyStoreException
public ProxyCertificateImpl(X509Certificate[] chain)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |