iaik.security.ssl
Class NullCompression

java.lang.Object
  extended by iaik.security.ssl.CompressionMethod
      extended by iaik.security.ssl.NullCompression
All Implemented Interfaces:
java.io.Serializable

public class NullCompression
extends CompressionMethod
implements java.io.Serializable

This class implements the default NULL compression method specified in SSL version 3.0 (identity operation).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class iaik.security.ssl.CompressionMethod
NULL_COMPRESSION
 
Method Summary
 int compress(byte[] in, int inOff, int inLen, byte[] out, int outOff)
          Returns the data without modification.
 int decompress(byte[] in, int inOff, int inLen, byte[] out, int outOff)
          Returns the data without modification.
 
Methods inherited from class iaik.security.ssl.CompressionMethod
equals, getDefault, getID, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compress

public int compress(byte[] in,
                    int inOff,
                    int inLen,
                    byte[] out,
                    int outOff)
Returns the data without modification.

Specified by:
compress in class CompressionMethod
Parameters:
in - the byte array holding the data to be processed
inOff - the offset indicating the start position within the in byte array
inLen - the number of bytes to be processed
out - the byte array for holding the result
outOff - the offset indicating the start position within the out byte array
Returns:
the number of bytes that are stored in the out byte array

decompress

public int decompress(byte[] in,
                      int inOff,
                      int inLen,
                      byte[] out,
                      int outOff)
Returns the data without modification.

Specified by:
decompress in class CompressionMethod
Parameters:
in - the byte array holding the data to be processed
inOff - the offset indicating the start position within the in byte array
inLen - the number of bytes to be processed
out - the byte array for holding the result
outOff - the offset indicating the start position within the out byte array
Returns:
the number of bytes that are stored in the out byte array

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC