JXTA

jxta.security.exceptions
Class CryptoException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--jxta.security.exceptions.CryptoException

public class CryptoException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
static short ILLEGAL_USE
          Indicates illegal use of a method
static short ILLEGAL_VALUE
          Indicates a method was passed illegal parameter values
static short INVALID_INIT
          Indicates an object has not been properly initilaized for the requested operation.
static short INVALID_RSA_DATALENGTH
           
static short INVALID_RSA_INIT
          Must set RSA public key before setting RSA Private key
static short INVALID_RSA_PADDING
          Must set RSA public key before setting RSA Private key
static short NO_SUCH_ALGORITHM
          Indicates that a requested algorithm or key type is not supported.
static short NOT_IMPLEMENTED
          Flags a method as not yet implemented
static short UNINITIALIZED_KEY
          Indicates that is key object has not been properly initialized
 
Constructor Summary
CryptoException(short reason)
          Constructs a CryptoException with the specified reason code.
 
Method Summary
static void throwIt(short reason)
          Throws a CryptoException with the specified reason code.
 java.lang.String toString()
          Returns a human readable string describing the CryptoException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ILLEGAL_USE

public static final short ILLEGAL_USE
Indicates illegal use of a method

ILLEGAL_VALUE

public static final short ILLEGAL_VALUE
Indicates a method was passed illegal parameter values

INVALID_INIT

public static final short INVALID_INIT
Indicates an object has not been properly initilaized for the requested operation.

NO_SUCH_ALGORITHM

public static final short NO_SUCH_ALGORITHM
Indicates that a requested algorithm or key type is not supported.

UNINITIALIZED_KEY

public static final short UNINITIALIZED_KEY
Indicates that is key object has not been properly initialized

NOT_IMPLEMENTED

public static final short NOT_IMPLEMENTED
Flags a method as not yet implemented

INVALID_RSA_INIT

public static final short INVALID_RSA_INIT
Must set RSA public key before setting RSA Private key

INVALID_RSA_PADDING

public static final short INVALID_RSA_PADDING
Must set RSA public key before setting RSA Private key

INVALID_RSA_DATALENGTH

public static final short INVALID_RSA_DATALENGTH
Constructor Detail

CryptoException

public CryptoException(short reason)
Constructs a CryptoException with the specified reason code.
Method Detail

throwIt

public static void throwIt(short reason)
                    throws CryptoException
Throws a CryptoException with the specified reason code.

toString

public java.lang.String toString()
Returns a human readable string describing the CryptoException.
Overrides:
toString in class java.lang.Throwable

JXTA