| java.lang.Object org.apache.harmony.xnet.provider.jsse.ConnectionState org.apache.harmony.xnet.provider.jsse.ConnectionStateTLS
ConnectionStateTLS | public class ConnectionStateTLS extends ConnectionState (Code) | | This class incapsulates the operating environment of the TLS v1
(http://www.ietf.org/rfc/rfc2246.txt) Record Protocol and provides
relating encryption/decryption functionality.
The work functionality is based on the security
parameters negotiated during the handshake.
|
Method Summary | |
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 representing
the Generic[Stream|Block]Cipher structure. | protected byte[] | encrypt(byte type, byte[] fragment, int offset, int len) Creates the GenericStreamCipher or GenericBlockCipher
data structure for specified data of specified type. |
ConnectionStateTLS | protected ConnectionStateTLS(SSLSessionImpl session)(Code) | | Creates the instance of TLS v1 Connection State. All of the
security parameters are provided by session object.
session: the sessin object which incapsulatesall of the security parameters established by handshake protocol.The key calculation for the state is done accordingto the TLS v 1.0 Protocol specification.(http://www.ietf.org/rfc/rfc2246.txt) |
decrypt | 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 representing
the Generic[Stream|Block]Cipher structure.
throws: org.apache.harmony.xnet.provider.jsse.AlertException - if alert was occured. |
|
|