Class SSLFTPCertificateException

All Implemented Interfaces:
Serializable

public class SSLFTPCertificateException extends SSLFTPException
This exception is thrown when an error relating to SSL/TLS certificates occurs.
Version:
$Revision$
Author:
Hans Andersen
See Also:
  • Constructor Details

    • SSLFTPCertificateException

      public SSLFTPCertificateException(String msg)
      Constructor.
      Parameters:
      msg - Detail message.
    • SSLFTPCertificateException

      public SSLFTPCertificateException(String msg, Vector certificates)
      Constructor.
      Parameters:
      msg - Detail message.
      certificates - Certificates related to the error (Vector of SSLFTPCertificate or BouncyCastle Certificate objects).
  • Method Details

    • getMessage

      public String getMessage()
      Returns the detail message string of this throwable.
      Overrides:
      getMessage in class Throwable
      Returns:
      the detail message string of this Throwable instance (which may be null).
    • getCertificates

      public Vector getCertificates()
      Provides access to the SSLFTPCertificates related to the exception.
      Returns:
      Vector of SSLFTPCertificate objects.
    • printCertificates

      public void printCertificates()
      Prints the certificates in PEM format to the standard error stream.
    • printCertificates

      public void printCertificates(PrintStream pStr)
      Prints the certificates in PEM format to the given stream.
      Parameters:
      pStr - Stream to write certificates to.
    • printCertificates

      public void printCertificates(PrintWriter pWriter)
      Prints the certificates in PEM format to the given writer.
      Parameters:
      pWriter - Writer to write certificates to.