| 
 | MIDP3.0 | |||||||||
| 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.io.IOException
javax.microedition.pki.CertificateException
public class CertificateException
The CertificateException encapsulates an error that occurred
 while a Certificate is being used. If multiple errors are
 found within a Certificate the more significant error should
 be reported in the exception.
| Field Summary | |
|---|---|
| static byte | BAD_EXTENSIONSIndicates a certificate has unrecognized critical extensions. | 
| static byte | BROKEN_CHAINIndicates a certificate in a chain was not issued by the next authority in the chain. | 
| static byte | CERTIFICATE_CHAIN_TOO_LONGIndicates the server certificate chain exceeds the length allowed by an issuer's policy. | 
| static byte | EXPIREDIndicates a certificate is expired. | 
| static byte | INAPPROPRIATE_KEY_USAGEIndicates a certificate public key has been used in way deemed inappropriate by the issuer. | 
| static byte | MISSING_SIGNATUREIndicates a certificate object does not contain a signature. | 
| static byte | NOT_YET_VALIDIndicates a certificate is not yet valid. | 
| static byte | ROOT_CA_EXPIREDIndicates the root CA's public key is expired. | 
| static byte | SITENAME_MISMATCHIndicates a certificate does not contain the correct site name. | 
| static byte | UNAUTHORIZED_INTERMEDIATE_CAIndicates an intermediate certificate in the chain does not have the authority to be a intermediate CA. | 
| static byte | UNRECOGNIZED_ISSUERIndicates a certificate was issued by an unrecognized entity. | 
| static byte | UNSUPPORTED_PUBLIC_KEY_TYPEIndicates that type of the public key in a certificate is not supported by the device. | 
| static byte | UNSUPPORTED_SIGALGIndicates a certificate was signed using an unsupported algorithm. | 
| static byte | VERIFICATION_FAILEDIndicates a certificate failed verification. | 
| Constructor Summary | |
|---|---|
| CertificateException(Certificate certificate,
                     byte status)Create a new exception with a Certificateand specific
 error reason. | |
| CertificateException(java.lang.String message,
                     Certificate certificate,
                     byte status)Create a new exception with a message, Certificate, and
 specific error reason. | |
| Method Summary | |
|---|---|
|  Certificate | getCertificate()Get the Certificatethat caused the exception. | 
|  byte | getReason()Get the reason code. | 
| Methods inherited from class java.lang.Throwable | 
|---|
| getMessage, printStackTrace, printStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final byte BAD_EXTENSIONS
public static final byte CERTIFICATE_CHAIN_TOO_LONG
public static final byte EXPIRED
public static final byte UNAUTHORIZED_INTERMEDIATE_CA
public static final byte MISSING_SIGNATURE
public static final byte NOT_YET_VALID
public static final byte SITENAME_MISMATCH
public static final byte UNRECOGNIZED_ISSUER
public static final byte UNSUPPORTED_SIGALG
public static final byte INAPPROPRIATE_KEY_USAGE
public static final byte BROKEN_CHAIN
public static final byte ROOT_CA_EXPIRED
public static final byte UNSUPPORTED_PUBLIC_KEY_TYPE
public static final byte VERIFICATION_FAILED
| Constructor Detail | 
|---|
public CertificateException(Certificate certificate,
                            byte status)
Certificate and specific
 error reason. The descriptive message for the new exception will be
 automatically provided, based on the reason.
certificate - the certificate that caused the exceptionstatus - the reason for the exception; the status MUST be between
            BAD_EXTENSIONS and VERIFICATION_FAILED inclusive.
public CertificateException(java.lang.String message,
                            Certificate certificate,
                            byte status)
Certificate, and
 specific error reason.
message - a descriptive messagecertificate - the certificate that caused the exceptionstatus - the reason for the exception; the status MUST be between
            BAD_EXTENSIONS and VERIFICATION_FAILED inclusive.| Method Detail | 
|---|
public Certificate getCertificate()
Certificate that caused the exception.
Certificate that included the failure.public byte getReason()
| 
 | MIDP3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||