iaik.security.ssl.chb
Class ChannelBindingType

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

public class ChannelBindingType
extends java.lang.Object
implements java.lang.Cloneable

This class represents the type of ChannelBinding.

Currently two channel binding types are supported:

See Also:
ChannelBinding, ChannelBindings, TLSUniqueChannelBinding, TLSServerEndPointChannelBinding

Constructor Summary
ChannelBindingType(int type, java.lang.String name)
          Creates an new ChannelBindingType.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this ChannelBindingType.
 boolean equals(java.lang.Object obj)
          Compares this ChannelBindingType to the specified object.
 java.lang.String getName()
          Gets the channel binding type name.
 int getType()
          Gets the channel binding type value.
 int hashCode()
          Gets a hashcode of this ChannelBindingType object.
 java.lang.String toString()
          Gets a String representation of this ChannelBindingType object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelBindingType

public ChannelBindingType(int type,
                          java.lang.String name)
Creates an new ChannelBindingType.

Parameters:
type - the channel binding type value
name - the channel binding type name
Throws:
java.lang.IllegalArgumentException - if the channel binding type value is out of range
Method Detail

getType

public int getType()
Gets the channel binding type value.

Returns:
the channel binding type value.

getName

public java.lang.String getName()
Gets the channel binding type name.

Returns:
the channel binding type name

equals

public boolean equals(java.lang.Object obj)
Compares this ChannelBindingType to the specified object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare this ChannelBindingType against.
Returns:
true, if the given object is equal to this ChannelBindingType, false otherwise

hashCode

public int hashCode()
Gets a hashcode of this ChannelBindingType object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hashCode of this object

clone

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

Overrides:
clone in class java.lang.Object
Returns:
a clone

toString

public java.lang.String toString()
Gets a String representation of this ChannelBindingType object.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.

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