Methods Summary |
---|
public boolean | addError(int error)Adds the SSL error to the error set
boolean rval = (0 <= error && error < SslError.SSL_MAX_ERROR);
if (rval) {
mErrors |= (0x1 << error);
}
return rval;
|
public SslCertificate | getCertificate()
return mCertificate;
|
public int | getPrimaryError()
if (mErrors != 0) {
// go from the most to the least severe errors
for (int error = SslError.SSL_MAX_ERROR - 1; error >= 0; --error) {
if ((mErrors & (0x1 << error)) != 0) {
return error;
}
}
}
return 0;
|
public boolean | hasError(int error)
boolean rval = (0 <= error && error < SslError.SSL_MAX_ERROR);
if (rval) {
rval = ((mErrors & (0x1 << error)) != 0);
}
return rval;
|
public java.lang.String | toString()
return "primary error: " + getPrimaryError() +
" certificate: " + getCertificate();
|