Teiid 8.3.0.Final

org.teiid.net.socket
Class Handshake

java.lang.Object
  extended by org.teiid.net.socket.Handshake
All Implemented Interfaces:
Externalizable, Serializable

public class Handshake
extends Object
implements Externalizable

Represents the information needed in a socket connection handshake

See Also:
Serialized Form

Constructor Summary
Handshake()
           
 
Method Summary
 AuthenticationType getAuthType()
           
 byte[] getPublicKey()
           
 String getVersion()
           
 void readExternal(ObjectInput in)
           
 void setAuthType(AuthenticationType authType)
           
 void setPublicKey(byte[] key)
           
 void setVersion()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handshake

public Handshake()
Method Detail

getVersion

public String getVersion()
Returns:
Returns the version.

setVersion

public void setVersion()
Parameters:
version - The version to set.

getPublicKey

public byte[] getPublicKey()
Returns:
Returns the key.

setPublicKey

public void setPublicKey(byte[] key)
Parameters:
key - The key to set.

getAuthType

public AuthenticationType getAuthType()

setAuthType

public void setAuthType(AuthenticationType authType)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

Teiid 8.3.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.