SATSA - JSR177

javax.microedition.pki
Class UserCredentialManagerException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.microedition.pki.UserCredentialManagerException

public final class UserCredentialManagerException
extends Exception

This class is used to identify error conditions in the management of the user certificate store. Thrown by the CMSMessageSignatureService and UserCredentialManager classes.


Field Summary
static byte CREDENTIAL_NOT_FOUND
          Code returned if an appropriate certificate can not be found.
static byte CREDENTIAL_NOT_SAVED
          Code returned if a credential can not be added.
static byte SE_NO_KEYGEN
          Code returned if a security element does not support key generation.
static byte SE_NO_KEYS
          Code returned if a security element does not have keys available for certificate requests.
static byte SE_NO_UNASSOCIATED_KEYS
          Code returned if a security element does not have any keys available that are not already associated with a certificate, and if the platform does not allow reuse of keys that are associated with an existing certificate.
static byte SE_NOT_FOUND
          Code returned if an appropriate security element can not be found.
 
Constructor Summary
UserCredentialManagerException(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

CREDENTIAL_NOT_SAVED

public static final byte CREDENTIAL_NOT_SAVED
Code returned if a credential can not be added. For example, it is returned if there is insufficient memory to add additional credentials

See Also:
Constant Field Values

SE_NO_KEYGEN

public static final byte SE_NO_KEYGEN
Code returned if a security element does not support key generation.

See Also:
Constant Field Values

SE_NO_KEYS

public static final byte SE_NO_KEYS
Code returned if a security element does not have keys available for certificate requests.

See Also:
Constant Field Values

SE_NO_UNASSOCIATED_KEYS

public static final byte SE_NO_UNASSOCIATED_KEYS
Code returned if a security element does not have any keys available that are not already associated with a certificate, and if the platform does not allow reuse of keys that are associated with an existing certificate.

See Also:
Constant Field Values

SE_NOT_FOUND

public static final byte SE_NOT_FOUND
Code returned if an appropriate security element can not be found.

See Also:
Constant Field Values

CREDENTIAL_NOT_FOUND

public static final byte CREDENTIAL_NOT_FOUND
Code returned if an appropriate certificate can not be found.

See Also:
Constant Field Values
Constructor Detail

UserCredentialManagerException

public UserCredentialManagerException(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 code for the error condition

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.