public class BadCertificateEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static short |
ADD_NOT_TRUSTED
Do not trust this certificate.
|
static short |
ADD_TRUSTED_FOR_SESSION
Trust the certificate temporarily
for the current application session only.
|
static short |
ADD_TRUSTED_PERMANENTLY
Trust the certificate permanently.
|
static int |
ERROR_MISMATCH |
static int |
ERROR_TIME |
static int |
ERROR_UNTRUSTED |
static short |
SHOW_DEFAULT_DIALOG
Show the default dialog.
|
source
Constructor and Description |
---|
BadCertificateEvent(Object source,
byte[] certBytes,
int aReason) |
BadCertificateEvent(Object source,
byte[] certBytes,
String aTargetURL,
int aReason) |
Modifier and Type | Method and Description |
---|---|
short |
getAction()
Get the current action that will be done.
|
X509Certificate |
getCertificate()
The bad certificate returned by the server.
|
int |
getReason()
Deprecated.
|
String |
getTargetURL()
Return the target URL.
|
boolean |
isDomainMismatch()
Returns true if the domain of the certificate doesn't match that of the site.
|
boolean |
isNotValidAtThisTime()
Returns true if the certificate has expired.
|
boolean |
isUntrusted()
Returns true if the certificate is untrusted.
|
void |
setAction(short action)
Sets what action to take.
Must be one of the following constants: SHOW_DEFAULT_DIALOG, ADD_NOT_TRUSTED, ADD_TRUSTED_FOR_SESSION, ADD_TRUSTED_PERMANENTLY. |
getSource, toString
public static final short SHOW_DEFAULT_DIALOG
public static final short ADD_NOT_TRUSTED
public static final short ADD_TRUSTED_FOR_SESSION
public static final short ADD_TRUSTED_PERMANENTLY
public static final int ERROR_UNTRUSTED
public static final int ERROR_MISMATCH
public static final int ERROR_TIME
public BadCertificateEvent(Object source, byte[] certBytes, int aReason)
source
- public short getAction()
public void setAction(short action)
public X509Certificate getCertificate()
public String getTargetURL()
public int getReason()
public boolean isDomainMismatch()
public boolean isNotValidAtThisTime()
public boolean isUntrusted()