java.lang.Object | |
↳ | android.net.http.SslError |
This class represents a set of one or more SSL errors and the associated SSL certificate.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | SSL_DATE_INVALID | The date of the certificate is invalid | |||||||||
int | SSL_EXPIRED | The certificate has expired | |||||||||
int | SSL_IDMISMATCH | Hostname mismatch | |||||||||
int | SSL_INVALID | A generic error occurred | |||||||||
int | SSL_MAX_ERROR | This constant was deprecated in API level 14. This constant is not necessary for using the SslError API and can change from release to release. | |||||||||
int | SSL_NOTYETVALID | The certificate is not yet valid | |||||||||
int | SSL_UNTRUSTED | The certificate authority is not trusted |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
This constructor was deprecated
in API level 14.
Use
SslError(int, SslCertificate, String)
|
||||||||||
|
This constructor was deprecated
in API level 14.
Use
SslError(int, X509Certificate, String)
|
||||||||||
|
Creates a new SslError object using the supplied error, certificate and
URL.
|
||||||||||
|
Creates a new SslError object using the supplied error, certificate and
URL.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Adds the supplied SSL error to the set.
|
||||||||||
|
Gets the SSL certificate associated with this object.
|
||||||||||
|
Gets the most severe SSL error in this object's set of errors.
|
||||||||||
|
Gets the URL associated with this object.
|
||||||||||
|
Determines whether this object includes the supplied error.
|
||||||||||
|
Returns a string representation of this object.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The date of the certificate is invalid
The certificate has expired
Hostname mismatch
A generic error occurred
This constant was deprecated
in API level 14.
This constant is not necessary for using the SslError API and
can change from release to release.
The number of different SSL errors.
The certificate is not yet valid
The certificate authority is not trusted
This constructor was deprecated
in API level 14.
Use
SslError(int, SslCertificate, String)
Creates a new SslError object using the supplied error and certificate. The URL will be set to the empty string.
error | The SSL error |
---|---|
certificate | The associated SSL certificate |
This constructor was deprecated
in API level 14.
Use
SslError(int, X509Certificate, String)
Creates a new SslError object using the supplied error and certificate. The URL will be set to the empty string.
error | The SSL error |
---|---|
certificate | The associated SSL certificate |
Creates a new SslError object using the supplied error, certificate and URL.
error | The SSL error |
---|---|
certificate | The associated SSL certificate |
url | The associated URL |
Creates a new SslError object using the supplied error, certificate and URL.
error | The SSL error |
---|---|
certificate | The associated SSL certificate |
url | The associated URL |
Adds the supplied SSL error to the set.
error | The SSL error to add |
---|
Gets the SSL certificate associated with this object.
Gets the most severe SSL error in this object's set of errors. Returns -1 if the set is empty.
Gets the URL associated with this object.
Determines whether this object includes the supplied error.
error | The SSL error to check for |
---|
Returns a string representation of this object.