Class Overview
One or more individual SSL errors and the associated SSL certificate
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Called before the object's memory is reclaimed by the VM.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Constants
public
static
final
int
SSL_EXPIRED
The certificate has expired
Constant Value:
1
(0x00000001)
public
static
final
int
SSL_IDMISMATCH
Constant Value:
2
(0x00000002)
public
static
final
int
SSL_MAX_ERROR
The number of different SSL errors (update if you add a new SSL error!!!)
Constant Value:
4
(0x00000004)
public
static
final
int
SSL_NOTYETVALID
The certificate is not yet valid
Constant Value:
0
(0x00000000)
public
static
final
int
SSL_UNTRUSTED
The certificate authority is not trusted
Constant Value:
3
(0x00000003)
Public Constructors
public
SslError
(int error, SslCertificate certificate)
Creates a new SSL error set object
Parameters
error
| The SSL error |
certificate
| The associated SSL certificate
|
public
SslError
(int error, X509Certificate certificate)
Creates a new SSL error set object
Parameters
error
| The SSL error |
certificate
| The associated SSL certificate
|
Public Methods
public
boolean
addError
(int error)
Adds the SSL error to the error set
Parameters
error
| The SSL error to add |
Returns
- True iff the error being added is a known SSL error
Returns
- The SSL certificate associated with the error set
public
int
getPrimaryError
()
Returns
- The primary, most severe, SSL error in the set
public
boolean
hasError
(int error)
Parameters
error
| The SSL error to check |
Returns
- True iff the set includes the error
public
String
toString
()
Returns a string containing a concise, human-readable description of this
object. Subclasses are encouraged to override this method and provide an
implementation that takes into account the object's type and data. The
default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful toString
method
if you intend implementing your own toString
method.
Returns
- A String representation of this SSL error object
(used mostly for debugging).