|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.ssl.CertificateErrorInfo
Contains informations usefull to efficiently treat and display server certificate errors.
| Field Summary | |
static int |
EXPIRED_DATE
The certificate is no longer valid. |
static int |
INVALID_SIGNATURE
The signature is not verified with the CA's public key. |
static int |
NOT_MATCHING_HOST_NAME
The certificate has been issued for a site that is different from te site you are connecting to. |
static int |
NOT_TRUSTED_CA
The Certificate Authority that signed this certificate is not trusted. |
static int |
NOT_YET_VALID_DATE
The certificate is not yet valid. |
static int |
PARSING_ERROR
An error occured while parsing the certificate. |
| Method Summary | |
Object |
getFaulty()
The wrong parameter, if relevant. |
int |
getId()
Indicates which error has been encountered. |
String |
getMessage()
An optional explanation message. |
Object |
getShouldBe()
What should be the faulty paramter, if relevant. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PARSING_ERROR
public static final int NOT_TRUSTED_CA
getFaulty() returns the CA's DN -
an instance of ice.cert.X500Name.
public static final int INVALID_SIGNATURE
public static final int NOT_MATCHING_HOST_NAME
getFaulty() returns the certificate's host name -
an instance of java.lang.String.
getShouldBe() returns the site's host name -
an instance of java.lang.String.
public static final int EXPIRED_DATE
getFaulty() returns the certificate's valid-to date -
an instance of java.util.Date.
getShouldBe() returns this computer's date at the time
of parsing the certificate -
an instance of java.util.Date.
public static final int NOT_YET_VALID_DATE
getFaulty() returns the certificate's valid-from date -
an instance of java.util.Date.
getShouldBe() returns this computer's date at the time
of parsing the certificate -
an instance of java.util.Date.
| Method Detail |
public int getId()
PARSING_ERROR,
NOT_TRUSTED_CA,
INVALID_SIGNATURE,
NOT_MATCHING_HOST_NAME,
EXPIRED_DATE,
NOT_YET_VALID_DATEpublic String getMessage()
public Object getFaulty()
PARSING_ERROR,
NOT_TRUSTED_CA,
INVALID_SIGNATURE,
NOT_MATCHING_HOST_NAME,
EXPIRED_DATE,
NOT_YET_VALID_DATEpublic Object getShouldBe()
getFaulty(). This method may return null even
if getFaulty() returns an object, but it never returns
an object if getFaulty() does not return an object.
PARSING_ERROR,
NOT_TRUSTED_CA,
INVALID_SIGNATURE,
NOT_MATCHING_HOST_NAME,
EXPIRED_DATE,
NOT_YET_VALID_DATE
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||