Package eu.emi.security.authn.x509.proxy
Interface ProxyCertificate
- All Known Implementing Classes:
ProxyCertificateImpl
public interface ProxyCertificate
Wraps information about a new proxy which was generated by the
ProxyGenerator
.- Author:
- K. Benedyczak
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the certificate chain of the proxy.Returns the X509Credential wrapping the generated private key and proxy certificate.Returns the generated private key of this proxy.boolean
-
Method Details
-
getCertificateChain
X509Certificate[] getCertificateChain()Returns the certificate chain of the proxy.- Returns:
- the Certificate chain starting with the generated proxy certificate.
-
getPrivateKey
Returns the generated private key of this proxy. If public key was manually set an exception is thrown.- Returns:
- The private key.
- Throws:
IllegalStateException
- if the private and public keys were not generated
-
getCredential
Returns the X509Credential wrapping the generated private key and proxy certificate. This method is useful if KeyStore or KeyManager with the newly generated proxy certificate is needed.- Returns:
- The generated credential wrapped in
X509Credential
- Throws:
IllegalStateException
- if the private and public keys were not generated
-
hasPrivateKey
boolean hasPrivateKey()- Returns:
- true if private key was generated and is available through
getPrivateKey()
andgetCredential()
-