Package 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
-
-
Constructor Summary
Constructors Constructor Description Handshake()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthenticationType
getAuthType()
Deprecated.byte[]
getPublicKey()
byte[]
getPublicKeyLarge()
String
getVersion()
boolean
isCbc()
void
readExternal(ObjectInput in)
void
setAuthType(AuthenticationType authType)
void
setCbc(boolean cbc)
void
setPublicKey(byte[] key)
void
setPublicKeyLarge(byte[] publicKeyLarge)
void
setVersion()
Sets the version from theApplicationInfo
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
getVersion
public String getVersion()
- Returns:
- Returns the version.
-
setVersion
public void setVersion()
Sets the version from theApplicationInfo
-
getPublicKey
public byte[] getPublicKey()
- Returns:
- Returns the key.
-
setPublicKey
public void setPublicKey(byte[] key)
- Parameters:
key
- The key to set.
-
getAuthType
@Deprecated public AuthenticationType getAuthType()
Deprecated.Represents the default auth type for the entire instance. Per vdb auth types are now supported and provided in theLogonResult
- Returns:
-
setAuthType
public void setAuthType(AuthenticationType authType)
-
getPublicKeyLarge
public byte[] getPublicKeyLarge()
-
setPublicKeyLarge
public void setPublicKeyLarge(byte[] publicKeyLarge)
-
isCbc
public boolean isCbc()
-
setCbc
public void setCbc(boolean cbc)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
-