Home | History | Annotate | Download | only in jsse

Lines Matching refs:alert

21  * This class encapsulates the functionality of Alert Protocol.
29 * Defines the severity of alert as warning
33 * Defines the severity of alert as fatal
39 * Defines the description code of the close_notify alert
43 * Defines the description code of the unexpected_message alert
47 * Defines the description code of the bad_record_mac alert
51 * Defines the description code of the decryption_failed alert
55 * Defines the description code of the record_overflow alert
59 * Defines the description code of the decompression_failure alert
63 * Defines the description code of the handshake_failure alert
67 * Defines the description code of the bad_certificate alert
71 * Defines the description code of the unsupported_certificate alert
75 * Defines the description code of the certificate_revoked alert
79 * Defines the description code of the certificate_expired alert
83 * Defines the description code of the certificate_unknown alert
87 * Defines the description code of the illegal_parameter alert
91 * Defines the description code of the unknown_ca alert
95 * Defines the description code of the access_denied alert
99 * Defines the description code of the decode_error alert
103 * Defines the description code of the decrypt_error alert
107 * Defines the description code of the export_restriction alert
111 * Defines the description code of the protocol_version alert
115 * Defines the description code of the insufficient_security alert
119 * Defines the description code of the internal_error alert
123 * Defines the description code of the user_canceled alert
127 * Defines the description code of the no_renegotiation alert
131 private final byte[] alert = new byte[2];
135 private Logger.Stream logger = Logger.getStream("alert");
153 * Reports an alert to be sent/received by transport.
155 * of the income TSL record: if it contains alert message from another
156 * peer, or if warning alert occured during the processing of the
158 * @param level: alert level code
159 * @param description: alert description code
162 protected void alert(byte level, byte description) {
164 logger.println("Alert.alert: "+level+" "+description);
166 this.alert[0] = level;
167 this.alert[1] = description;
171 * Returns the description code of alert or -100 if there
172 * is no alert.
175 return (alert[0] != 0) ? alert[1] : -100;
179 * Resets the protocol to be in "no alert" state.
180 * This method shoud be called after processing of the reported alert.
183 // free the info about alert
185 logger.println("Alert.setProcessed");
187 this.alert[0] = 0;
191 * Checks if any alert has occured.
194 return (alert[0] != 0);
198 * Checks if occured alert is fatal alert.
201 return (alert[0] == 2);
205 * Returns the string representation of occured alert.
206 * If no alert has occured null is returned.
209 switch (alert[1]) {
261 * Returns the record with reported alert message.
263 * Note, that this method does not automatically set the state of alert
264 * protocol in "no alert" state, so after wrapping the method setProcessed
268 byte[] res = recordProtocol.wrap(ContentType.ALERT, alert, 0, 2);
277 alert[0] = 0;
278 alert[1] = 0;