Package com.enterprisedt.net.ftp.ssl
Class SSLFTPCertificateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.enterprisedt.net.ftp.FTPException
com.enterprisedt.net.ftp.ssl.SSLFTPException
com.enterprisedt.net.ftp.ssl.SSLFTPCertificateException
- All Implemented Interfaces:
Serializable
This exception is thrown when an error relating to SSL/TLS certificates occurs.
- Version:
- $Revision$
- Author:
- Hans Andersen
- See Also:
-
Field Summary
Fields inherited from class com.enterprisedt.net.ftp.FTPException
cvsId -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SSLFTPCertificateException(String msg, Vector certificates) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionProvides access to theSSLFTPCertificates related to the exception.Returns the detail message string of this throwable.voidPrints the certificates in PEM format to the standard error stream.voidprintCertificates(PrintStream pStr) Prints the certificates in PEM format to the given stream.voidprintCertificates(PrintWriter pWriter) Prints the certificates in PEM format to the given writer.Methods inherited from class com.enterprisedt.net.ftp.FTPException
getReplyCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SSLFTPCertificateException
Constructor.- Parameters:
msg- Detail message.
-
SSLFTPCertificateException
Constructor.- Parameters:
msg- Detail message.certificates- Certificates related to the error (Vector of SSLFTPCertificate or BouncyCastle Certificate objects).
-
-
Method Details
-
getMessage
Returns the detail message string of this throwable.- Overrides:
getMessagein classThrowable- Returns:
- the detail message string of this Throwable instance (which may be null).
-
getCertificates
Provides access to theSSLFTPCertificates related to the exception.- Returns:
VectorofSSLFTPCertificateobjects.
-
printCertificates
public void printCertificates()Prints the certificates in PEM format to the standard error stream. -
printCertificates
Prints the certificates in PEM format to the given stream.- Parameters:
pStr- Stream to write certificates to.
-
printCertificates
Prints the certificates in PEM format to the given writer.- Parameters:
pWriter- Writer to write certificates to.
-