| java.lang.Object org.bouncycastle.crypto.tls.TlsProtocolHandler
TlsProtocolHandler | public class TlsProtocolHandler (Code) | | An implementation of all high level protocols in TLS 1.0.
|
AL_fatal | final protected static short AL_fatal(Code) | | |
AL_warning | final protected static short AL_warning(Code) | | |
AP_access_denied | final protected static short AP_access_denied(Code) | | |
AP_bad_certificate | final protected static short AP_bad_certificate(Code) | | |
AP_bad_record_mac | final protected static short AP_bad_record_mac(Code) | | |
AP_certificate_expired | final protected static short AP_certificate_expired(Code) | | |
AP_certificate_revoked | final protected static short AP_certificate_revoked(Code) | | |
AP_certificate_unknown | final protected static short AP_certificate_unknown(Code) | | |
AP_close_notify | final protected static short AP_close_notify(Code) | | |
AP_decode_error | final protected static short AP_decode_error(Code) | | |
AP_decompression_failure | final protected static short AP_decompression_failure(Code) | | |
AP_decrypt_error | final protected static short AP_decrypt_error(Code) | | |
AP_decryption_failed | final protected static short AP_decryption_failed(Code) | | |
AP_export_restriction | final protected static short AP_export_restriction(Code) | | |
AP_handshake_failure | final protected static short AP_handshake_failure(Code) | | |
AP_illegal_parameter | final protected static short AP_illegal_parameter(Code) | | |
AP_insufficient_security | final protected static short AP_insufficient_security(Code) | | |
AP_internal_error | final protected static short AP_internal_error(Code) | | |
AP_no_renegotiation | final protected static short AP_no_renegotiation(Code) | | |
AP_protocol_version | final protected static short AP_protocol_version(Code) | | |
AP_record_overflow | final protected static short AP_record_overflow(Code) | | |
AP_unexpected_message | final protected static short AP_unexpected_message(Code) | | |
AP_unknown_ca | final protected static short AP_unknown_ca(Code) | | |
AP_unsupported_certificate | final protected static short AP_unsupported_certificate(Code) | | |
AP_user_canceled | final protected static short AP_user_canceled(Code) | | |
connect | public void connect(CertificateVerifyer verifyer) throws IOException(Code) | | Connects to the remote system.
Parameters: verifyer - Will be used when a certificate is received to verifythat this certificate is accepted by the client. throws: IOException - If handshake was not successfull. |
failWithError | protected void failWithError(short alertLevel, short alertDescription) throws IOException(Code) | | Terminate this connection whith an alert.
Can be used for normal closure too.
Parameters: alertLevel - The level of the alert, an be AL_fatal or AL_warning. Parameters: alertDescription - The exact alert message. throws: IOException - If alert was fatal. |
getInputStream | public InputStream getInputStream()(Code) | | An InputStream which can be used to read data. |
getOutputStream | public OutputStream getOutputStream()(Code) | | An OutputStream which can be used to send data. |
processData | protected void processData(short protocol, byte[] buf, int offset, int len) throws IOException(Code) | | |
readApplicationData | protected int readApplicationData(byte[] buf, int offset, int len) throws IOException(Code) | | Read data from the network. The method will return immed, if there is
still some data left in the buffer, or block untill some application
data has been read from the network.
Parameters: buf - The buffer where the data will be copied to. Parameters: offset - The position where the data will be placed in the buffer. Parameters: len - The maximum number of bytes to read. The number of bytes read. throws: IOException - If something goes wrong during reading data. |
writeData | protected void writeData(byte[] buf, int offset, int len) throws IOException(Code) | | Send some application data to the remote system.
The method will handle fragmentation internally.
Parameters: buf - The buffer with the data. Parameters: offset - The position in the buffer where the data is placed. Parameters: len - The length of the data. throws: IOException - If something goes wrong during sending. |
|
|