iaik.security.ssl
Class SSLCertificateRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by iaik.security.ssl.SSLCertificateRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class SSLCertificateRuntimeException
extends java.lang.RuntimeException

Maybe used by an application for wrapping a self-designed certificate validation exception. An application that extends the iSaSiLk ChainVerifier to implement its own certificate validation strategy may throw a SSLCertificateRuntimeException if the certificate validation fails. An exception that is wrapped by a SSLCertificateRuntimeException is forwarded to the iSaSiLk handshaker and finally can be parsed from the SSLSocket (or context) if the handshake fails because of an certificate validation error.

See Also:
Serialized Form

Constructor Summary
SSLCertificateRuntimeException()
          Creates a SSLCertificateRuntimeException with no message.
SSLCertificateRuntimeException(java.lang.Exception wrappedException)
          Creates a SSLCertificateRuntimeException with the specified wrapped exception.
SSLCertificateRuntimeException(java.lang.String msg)
          Creates a SSLCertificateRuntimeException with the specified message.
SSLCertificateRuntimeException(java.lang.String msg, java.lang.Exception wrappedException)
          Creates a SSLCertificateRuntimeException with the specified message and wrapped exception.
 
Method Summary
 java.lang.Exception getWrappedException()
          Gets the wrapped (original) exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

SSLCertificateRuntimeException

public SSLCertificateRuntimeException()
Creates a SSLCertificateRuntimeException with no message.


SSLCertificateRuntimeException

public SSLCertificateRuntimeException(java.lang.String msg)
Creates a SSLCertificateRuntimeException with the specified message.

Parameters:
msg - the exception message

SSLCertificateRuntimeException

public SSLCertificateRuntimeException(java.lang.String msg,
                                      java.lang.Exception wrappedException)
Creates a SSLCertificateRuntimeException with the specified message and wrapped exception.

Parameters:
msg - the exception message
wrappedException - the wrapped (original) exception

SSLCertificateRuntimeException

public SSLCertificateRuntimeException(java.lang.Exception wrappedException)
Creates a SSLCertificateRuntimeException with the specified wrapped exception.

Parameters:
wrappedException - the wrapped (original) exception
Method Detail

getWrappedException

public java.lang.Exception getWrappedException()
Gets the wrapped (original) exception.

Returns:
the wrapped exception, maybe null

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC