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 Details

    • getCertificateChain

      X509Certificate[] getCertificateChain()
      Returns the certificate chain of the proxy.
      Returns:
      the Certificate chain starting with the generated proxy certificate.
    • getPrivateKey

      PrivateKey getPrivateKey() throws IllegalStateException
      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

      X509Credential getCredential() throws IllegalStateException
      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() and getCredential()