SATSA - JSR177

javax.microedition.securityservice
Class CMSMessageSignatureServiceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.microedition.securityservice.CMSMessageSignatureServiceException

public final class CMSMessageSignatureServiceException
extends Exception

This class is used to identify error conditions detected while signing messages. Thrown by the CMSMessageSignatureService and UserCredentialManager classes.


Field Summary
static byte CRYPTO_FAILURE
          Error code returned if a cyptographic error occured.
static byte CRYPTO_FORMAT_ERROR
          Error code returned if an error occurs when formatting a result.
static byte CRYPTO_NO_CERTIFICATE
          Error code returned if a certificate is not available on the device for the selected public key.
static byte CRYPTO_NO_DETACHED_SIG
          Error code returned if detached signatures are not supported.
static byte CRYPTO_NO_OPAQUE_SIG
          Error code returned if opaque signatures are not supported.
static byte SE_BUSY
          Error code returned if security element is busy.
static byte SE_CRYPTO_FAILURE
          Error code returned if a cryptographic operation failed in a security element.
static byte SE_FAILURE
          Error code returned if an operation involving the security element fails.
 
Constructor Summary
CMSMessageSignatureServiceException(byte code)
          Construct an exception with specific reason code.
 
Method Summary
 byte getReason()
          Gets the reason code.
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CRYPTO_FAILURE

public static final byte CRYPTO_FAILURE
Error code returned if a cyptographic error occured.

See Also:
Constant Field Values

CRYPTO_FORMAT_ERROR

public static final byte CRYPTO_FORMAT_ERROR
Error code returned if an error occurs when formatting a result.

See Also:
Constant Field Values

CRYPTO_NO_DETACHED_SIG

public static final byte CRYPTO_NO_DETACHED_SIG
Error code returned if detached signatures are not supported.

See Also:
Constant Field Values

CRYPTO_NO_OPAQUE_SIG

public static final byte CRYPTO_NO_OPAQUE_SIG
Error code returned if opaque signatures are not supported.

See Also:
Constant Field Values

SE_BUSY

public static final byte SE_BUSY
Error code returned if security element is busy.

See Also:
Constant Field Values

SE_FAILURE

public static final byte SE_FAILURE
Error code returned if an operation involving the security element fails.

See Also:
Constant Field Values

SE_CRYPTO_FAILURE

public static final byte SE_CRYPTO_FAILURE
Error code returned if a cryptographic operation failed in a security element.

See Also:
Constant Field Values

CRYPTO_NO_CERTIFICATE

public static final byte CRYPTO_NO_CERTIFICATE
Error code returned if a certificate is not available on the device for the selected public key.

See Also:
Constant Field Values
Constructor Detail

CMSMessageSignatureServiceException

public CMSMessageSignatureServiceException(byte code)
Construct an exception with specific reason code.

Parameters:
code - the code for the error condition
Method Detail

getReason

public byte getReason()
Gets the reason code.

Returns:
the reason code for the error detected

SATSA - JSR177

Submit a comment or suggestion Version 1.0 of SATSA Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2004 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.