org.neuclear.commons.crypto
Class CryptoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.neuclear.commons.NeuClearException
              extended by org.neuclear.commons.crypto.CryptoException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidPassphraseException, NonExistingSignerException

public class CryptoException
extends NeuClearException

(C) 2003 Antilles Software Ventures SA User: pelleb Date: Feb 10, 2003 Time: 10:53:08 AM $Id: CryptoException.java,v 1.2 2003/11/21 04:43:41 pelle Exp $ $Log: CryptoException.java,v $ Revision 1.2 2003/11/21 04:43:41 pelle EncryptedFileStore now works. It uses the PBECipher with DES3 afair. Otherwise You will Finaliate. Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final. This should hopefully make everything more stable (and secure). Revision 1.1 2003/11/11 21:17:48 pelle Further vital reshuffling. org.neudist.crypto.* and org.neudist.utils.* have been moved to respective areas under org.neuclear.commons org.neuclear.signers.* as well as org.neuclear.passphraseagents have been moved under org.neuclear.commons.crypto as well. Did a bit of work on the Canonicalizer and changed a few other minor bits. Revision 1.1 2003/02/11 14:47:02 pelle Added benchmarking code. DigestValue is now a required part. If you pass a keypair when you sign, you get the PublicKey included as a KeyInfo block within the signature.

See Also:
Serialized Form

Constructor Summary
CryptoException(java.lang.String message)
          Constructs a new exception with the specified detail message.
CryptoException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
CryptoException(java.lang.Throwable cause)
          Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 
Method Summary
 
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

CryptoException

public CryptoException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, PrivilegedActionException).

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4

CryptoException

public CryptoException(java.lang.String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.

CryptoException

public CryptoException(java.lang.String message,
                       java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4


Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.