iaik.security.ssl
Class UnknownExtension

java.lang.Object
  extended by iaik.security.ssl.Extension
      extended by iaik.security.ssl.UnknownExtension
All Implemented Interfaces:
java.lang.Cloneable

public class UnknownExtension
extends Extension
implements java.lang.Cloneable

This class implements any unknown TLS extension.

The general extension structure is defined as (see RFC 4366):

 struct {
    ExtensionType extension_type;
    opaque extension_data<0..2^16-1>;
 } Extension;
 

The extension is identified by its type. The value of the extension is represented as opaque extension data.

An extension is treated as unknown if there does not exist a registered implementation for the corresponding extension type. When parsing an extension of unkown type, an instance of this class is created an initialized with the raw extension data which then can be retrieved by calling method getData.

Version:
File Revision 33
See Also:
Extension, ExtensionList

Method Summary
 java.lang.Object clone()
          Returns a clone of this UnknownExtension.
 byte[] getData()
          Gets the raw, uninterpreted data from this unknown extension.
 java.lang.String toString()
          Gets a String representation of the data of this unknown extension.
 
Methods inherited from class iaik.security.ssl.Extension
getAllowedProtocolVersions, getExtensionType, getName, getType, setCritical
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getData

public byte[] getData()
Gets the raw, uninterpreted data from this unknown extension.

Returns:
the raw extension data bytes

clone

public java.lang.Object clone()
Returns a clone of this UnknownExtension.

Overrides:
clone in class Extension
Returns:
a clone of this UnknownExtension

toString

public java.lang.String toString()
Gets a String representation of the data of this unknown extension.

Specified by:
toString in class Extension
Returns:
a String representation of the extension data

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