org.teiid.net.socket
Class Handshake
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Handshake
public Handshake()
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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.