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.pki
Class UserCredentialManagerException

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

public final class UserCredentialManagerException
extends java.lang.Exception

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

See Also:
Serialized Form

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

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

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.