PageRenderTime 17ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 9ms app.codeStats 0ms

/flash-src/third-party/com/hurlant/crypto/tls/TLSError.as

http://github.com/gimite/web-socket-js
ActionScript | 39 lines | 29 code | 1 blank | 9 comment | 0 complexity | 3adf5bdb71ddf25b5bbda6ba672d2caf MD5 | raw file
 1/**
 2 * TLSError
 3 * 
 4 * A error that can be thrown when something wrong happens in the TLS protocol.
 5 * This is handled in TLSEngine by generating a TLS ALERT as appropriate.
 6 * Copyright (c) 2007 Henri Torgemane
 7 * 
 8 * See LICENSE.txt for full license information.
 9 */
10package com.hurlant.crypto.tls {
11	public class TLSError extends Error {
12		public static const close_notify:uint = 0;
13		public static const unexpected_message:uint = 10;
14        public static const bad_record_mac:uint = 20;
15        public static const decryption_failed:uint = 21;
16        public static const record_overflow:uint = 22;
17        public static const decompression_failure:uint = 30;
18        public static const handshake_failure:uint = 40;
19        public static const bad_certificate:uint = 42;
20        public static const unsupported_certificate:uint = 43;
21        public static const certificate_revoked:uint = 44;
22        public static const certificate_expired:uint = 45;
23        public static const certificate_unknown:uint = 46;
24        public static const illegal_parameter:uint = 47;
25        public static const unknown_ca:uint = 48;
26        public static const access_denied:uint = 49;
27        public static const decode_error:uint = 50;
28        public static const decrypt_error:uint = 51;
29        public static const protocol_version:uint = 70;
30        public static const insufficient_security:uint = 71;
31        public static const internal_error:uint = 80;
32        public static const user_canceled:uint = 90;
33        public static const no_renegotiation:uint = 100;
34        
35        public function TLSError(message:String, id:int) {
36        	super(message,id);
37        }
38	}
39}