Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 177

javax.microedition.securityservice
Class CMSMessageSignatureServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.microedition.securityservice.CMSMessageSignatureServiceException
All Implemented Interfaces:
java.io.Serializable

public final class CMSMessageSignatureServiceException
extends java.lang.Exception

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

See Also:
Serialized Form

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
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
 

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

JSR 177

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 177 specification.