Lines Matching refs:error
49 * The number of different SSL errors (update if you add a new SSL error!!!)
54 * The SSL error set bitfield (each individual error is an bit index;
60 * The SSL certificate associated with the error set
65 * Creates a new SSL error set object
66 * @param error The SSL error
69 public SslError(int error, SslCertificate certificate) {
70 addError(error);
75 * Creates a new SSL error set object
76 * @param error The SSL error
79 public SslError(int error, X509Certificate certificate) {
80 addError(error);
85 * @return The SSL certificate associated with the error set
92 * Adds the SSL error to the error set
93 * @param error The SSL error to add
94 * @return True iff the error being added is a known SSL error
96 public boolean addError(int error) {
97 boolean rval = (0 <= error && error < SslError.SSL_MAX_ERROR);
99 mErrors |= (0x1 << error);
106 * @param error The SSL error to check
107 * @return True iff the set includes the error
109 public boolean hasError(int error) {
110 boolean rval = (0 <= error && error < SslError.SSL_MAX_ERROR);
112 rval = ((mErrors & (0x1 << error)) != 0);
119 * @return The primary, most severe, SSL error in the set
124 for (int error = SslError.SSL_MAX_ERROR - 1; error >= 0; --error) {
125 if ((mErrors & (0x1 << error)) != 0) {
126 return error;
135 * @return A String representation of this SSL error object
139 return "primary error: " + getPrimaryError() +