| java.lang.Object org.apache.harmony.xnet.provider.jsse.ConnectionState
All known Subclasses: org.apache.harmony.xnet.provider.jsse.ConnectionStateSSLv3, org.apache.harmony.xnet.provider.jsse.ConnectionStateTLS,
ConnectionState | abstract public class ConnectionState (Code) | | This abstract class is a base for Record Protocol operating environmet
of different SSL protocol versions.
|
Method Summary | |
protected byte[] | decrypt(byte type, byte[] fragment) Retrieves the fragment of the Plaintext structure of
the specified type from the provided data. | abstract protected byte[] | decrypt(byte type, byte[] fragment, int offset, int len) Retrieves the fragment of the Plaintext structure of
the specified type from the provided data. | protected byte[] | encrypt(byte type, byte[] fragment) Creates the GenericStreamCipher or GenericBlockCipher
data structure for specified data of specified type. | abstract protected byte[] | encrypt(byte type, byte[] fragment, int offset, int len) Creates the GenericStreamCipher or GenericBlockCipher
data structure for specified data of specified type. | protected int | getContentSize(int generic_cipher_size) Returns the minimal upper bound of the content size enclosed
into the Generic[Stream|Generic]Cipher structure of specified size. | protected int | getFragmentSize(int content_size) Returns the size of the Generic[Stream|Generic]Cipher structure
corresponding to the content data of specified size. | protected int | getMinFragmentSize() Returns the minimal possible size of the
Generic[Stream|Generic]Cipher structure under this
connection state. | protected static void | incSequenceNumber(byte[] seq_num) Increments the sequence number. | protected void | shutdown() Shutdownes the protocol. |
decCipher | protected Cipher decCipher(Code) | | The cipher used for decode operations
|
encCipher | protected Cipher encCipher(Code) | | The cipher used for encode operations
|
hash_size | protected int hash_size(Code) | | The size of MAC used under this connection state
|
is_block_cipher | protected boolean is_block_cipher(Code) | | The cipher type
|
read_seq_num | final protected byte[] read_seq_num(Code) | | Read sequence number which is incremented after each
decrypt call
|
write_seq_num | final protected byte[] write_seq_num(Code) | | Write sequence number which is incremented after each
encrypt call
|
decrypt | protected byte[] decrypt(byte type, byte[] fragment)(Code) | | Retrieves the fragment of the Plaintext structure of
the specified type from the provided data.
Parameters: type - - the ContentType of the data to be decrypted. Parameters: fragment - - the byte array containing thedata to be encrypted under the current connection state. |
decrypt | abstract protected byte[] decrypt(byte type, byte[] fragment, int offset, int len)(Code) | | Retrieves the fragment of the Plaintext structure of
the specified type from the provided data.
Parameters: type - - the ContentType of the data to be decrypted. Parameters: fragment - - the byte array containing thedata to be encrypted under the current connection state. Parameters: offset - - the offset from which the data begins with. Parameters: len - - the length of the data. |
encrypt | protected byte[] encrypt(byte type, byte[] fragment)(Code) | | Creates the GenericStreamCipher or GenericBlockCipher
data structure for specified data of specified type.
Parameters: type - - the ContentType of the provided data Parameters: fragment - - the byte array containing thedata to be encrypted under the current connection state. |
encrypt | abstract protected byte[] encrypt(byte type, byte[] fragment, int offset, int len)(Code) | | Creates the GenericStreamCipher or GenericBlockCipher
data structure for specified data of specified type.
Parameters: type - - the ContentType of the provided data Parameters: fragment - - the byte array containing thedata to be encrypted under the current connection state. Parameters: offset - - the offset from which the data begins with. Parameters: len - - the length of the data. |
getContentSize | protected int getContentSize(int generic_cipher_size)(Code) | | Returns the minimal upper bound of the content size enclosed
into the Generic[Stream|Generic]Cipher structure of specified size.
For stream ciphers the returned value will be exact value.
|
getFragmentSize | protected int getFragmentSize(int content_size)(Code) | | Returns the size of the Generic[Stream|Generic]Cipher structure
corresponding to the content data of specified size.
|
getMinFragmentSize | protected int getMinFragmentSize()(Code) | | Returns the minimal possible size of the
Generic[Stream|Generic]Cipher structure under this
connection state.
|
incSequenceNumber | protected static void incSequenceNumber(byte[] seq_num)(Code) | | Increments the sequence number.
|
shutdown | protected void shutdown()(Code) | | Shutdownes the protocol. It will be impossiblke to use the instance
after the calling of this method.
|
|
|