iaik.security.ssl.chb
Class TLSUniqueChannelBinding

java.lang.Object
  extended by iaik.security.ssl.chb.ChannelBinding
      extended by iaik.security.ssl.chb.TLSUniqueChannelBinding
All Implemented Interfaces:
java.lang.Cloneable

public class TLSUniqueChannelBinding
extends ChannelBinding

This class implements the tls-unique channel binding according to RFC 5929.

RFC 5929 specifies the tls-unique channel binding as the first Finished message verify data in the most recent handshake.

An application that is interested to capture the tls-unique channel binding value has to announce its interest by adding a ChannelBindings containing the TLSUniqueChannelBinding to the SSLContext object, e.g.:

 ChannelBindings channelBindings = new ChannelBindings();
 channelBindings.addChannelBinding(new TLSServerEndPointChannelBinding());
 context.setChannelBindings(channelBindings);
 
After having completed the handshake the tls-unique channel binding value can be obtained from the SSLSocket:
 ChannelBindings chBndgs = socket.getChannelBindings();
 if (chBndgs != null) {
   TLSUniqueChannelBinding tlsUnique = (TLSUniqueChannelBinding)chBndgs.getChannelBinding(TLSUniqueChannelBinding.TYPE);
   if (tlsUnique != null) {
     System.out.println("tls-unique: " + Util.toString(tlsUnique.getData()));
   }
   TLSServerEndPointChannelBinding tlsServerEndPoint = (TLSServerEndPointChannelBinding)chBndgs.getChannelBinding(TLSServerEndPointChannelBinding.TYPE);
   if (tlsServerEndPoint != null) {
     System.out.println("tls-server-end-point: " + Util.toString(tlsServerEndPoint.getData()));
   }
 }  
 

See Also:
ChannelBinding, ChannelBindings, ChannelBindingType

Field Summary
static ChannelBindingType TYPE
           
 
Constructor Summary
TLSUniqueChannelBinding()
          Default constructor.
TLSUniqueChannelBinding(byte[] data)
          Creates a TLSUniqueChannelBinding object with the given Finished verify data.
 
Method Summary
 
Methods inherited from class iaik.security.ssl.chb.ChannelBinding
clone, equals, getChannelBindingType, getData, getName, getType, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final ChannelBindingType TYPE
Constructor Detail

TLSUniqueChannelBinding

public TLSUniqueChannelBinding()
Default constructor.


TLSUniqueChannelBinding

public TLSUniqueChannelBinding(byte[] data)
Creates a TLSUniqueChannelBinding object with the given Finished verify data.

Parameters:
data - the Finsihed verify 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