|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.squawk.security.CryptoException
public class CryptoException
CryptoException represents a cryptography-related exception.
com.sun.squawk.security.verifier.SHA,
com.sun.squawk.security.signing.SHA,
com.sun.squawk.security.signing.ECDSASignature,
com.sun.squawk.security.signing.PseudoRand| Field Summary | |
|---|---|
static int |
ILLEGAL_USE
This reason code is used to indicate that the signature or cipher algorithm does not pad the incoming message and the input message is not block aligned. |
static int |
ILLEGAL_VALUE
This reason code is used to indicate that one or more input parameters is out of allowed bounds. |
static int |
INVALID_INIT
This reason code is used to indicate that the signature or cipher object has not been correctly initialized for the requested operation. |
static int |
UNINITIALIZED_KEY
This reason code is used to indicate that the key is uninitialized. |
| Constructor Summary | |
|---|---|
CryptoException(int reason)
Constructs a CryptoException with the specified reason. |
|
| Method Summary | |
|---|---|
int |
getReason()
Gets the reason code |
int |
setReason(int reason)
Sets the reason code |
static void |
throwIt(int reason)
Throws a CryptoException with the specified reason. |
String |
toString()
Returns a human readable string describing this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
getMessage, printStackTrace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ILLEGAL_VALUE
public static final int UNINITIALIZED_KEY
public static final int INVALID_INIT
public static final int ILLEGAL_USE
| Constructor Detail |
|---|
public CryptoException(int reason)
CryptoException with the specified reason.
reason - the reason for the exception| Method Detail |
|---|
public int getReason()
public int setReason(int reason)
reason - the reason for the exception
public static void throwIt(int reason)
throws CryptoException
CryptoException with the specified reason.
reason - the reason for the exception
CryptoException - alwayspublic String toString()
toString in class Throwable
|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||