com.enterprisedt.net.ftp.ssl
Class SSLFTPCertificateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.enterprisedt.net.ftp.FTPException
              extended by com.enterprisedt.net.ftp.ssl.SSLFTPException
                  extended by com.enterprisedt.net.ftp.ssl.SSLFTPCertificateException
All Implemented Interfaces:
java.io.Serializable

public class SSLFTPCertificateException
extends SSLFTPException

This exception is thrown when an error relating to SSL/TLS certificates occurs.

Version:
$Revision: 1.5 $
Author:
Hans Andersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.enterprisedt.net.ftp.FTPException
cvsId
 
Constructor Summary
SSLFTPCertificateException(java.lang.String msg)
          Constructor.
SSLFTPCertificateException(java.lang.String msg, java.util.Vector certificates)
          Constructor.
 
Method Summary
 java.util.Vector getCertificates()
          Provides access to the SSLFTPCertificates related to the exception.
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 void printCertificates()
          Prints the certificates in PEM format to the standard error stream.
 void printCertificates(java.io.PrintStream pStr)
          Prints the certificates in PEM format to the given stream.
 void printCertificates(java.io.PrintWriter pWriter)
          Prints the certificates in PEM format to the given writer.
 
Methods inherited from class com.enterprisedt.net.ftp.FTPException
getReplyCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSLFTPCertificateException

public SSLFTPCertificateException(java.lang.String msg)
Constructor.

Parameters:
msg - Detail message.

SSLFTPCertificateException

public SSLFTPCertificateException(java.lang.String msg,
                                  java.util.Vector certificates)
Constructor.

Parameters:
msg - Detail message.
certificates - Certificates related to the error.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detail message string of this throwable.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message string of this Throwable instance (which may be null).

getCertificates

public java.util.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(java.io.PrintStream pStr)
Prints the certificates in PEM format to the given stream.

Parameters:
pStr - Stream to write certificates to.

printCertificates

public void printCertificates(java.io.PrintWriter pWriter)
Prints the certificates in PEM format to the given writer.

Parameters:
pWriter - Writer to write certificates to.


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.