Class AuthenticationProtocolCommonDetails
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class AuthenticationProtocolCommonDetails extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
AuthenticationProtocolCommonDetails.Builder
RecordBuilder for AuthenticationProtocolCommonDetails instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
sessionId
public int
ourMaxMessageSize
public Session
session
public String
myPrivateDHKey
public ByteBuffer
myPublicDHKey
public String
peerPublicDHKey
public ByteBuffer
sharedDHSecret
public ProtocolMode
selectedMode
public SharedHandshakeSecrets
sharedHandshakeSecrets
public InitiatorHelloMessage
initiatorHelloMessage
public ResponderHelloMessage
responderHelloMessage
public ByteBuffer
initiatorHelloToResponderHelloBytes
public ByteBuffer
initiatorHandshakePayloadBytes
public ByteBuffer
responderHandshakePayloadBytes
public Integer
agreedMaxMessageSize
-
Constructor Summary
Constructors Constructor Description AuthenticationProtocolCommonDetails()
Default constructor. AuthenticationProtocolCommonDetails(String sessionId, Integer ourMaxMessageSize, Session session, String myPrivateDHKey, ByteBuffer myPublicDHKey, String peerPublicDHKey, ByteBuffer sharedDHSecret, ProtocolMode selectedMode, SharedHandshakeSecrets sharedHandshakeSecrets, InitiatorHelloMessage initiatorHelloMessage, ResponderHelloMessage responderHelloMessage, ByteBuffer initiatorHelloToResponderHelloBytes, ByteBuffer initiatorHandshakePayloadBytes, ByteBuffer responderHandshakePayloadBytes, Integer agreedMaxMessageSize)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getSessionId()
Gets the value of the 'sessionId' field. void
setSessionId(String value)
Sets the value of the 'sessionId' field. int
getOurMaxMessageSize()
Gets the value of the 'ourMaxMessageSize' field. void
setOurMaxMessageSize(int value)
Sets the value of the 'ourMaxMessageSize' field. Session
getSession()
Gets the value of the 'session' field. void
setSession(Session value)
Sets the value of the 'session' field. String
getMyPrivateDHKey()
Gets the value of the 'myPrivateDHKey' field. void
setMyPrivateDHKey(String value)
Sets the value of the 'myPrivateDHKey' field. ByteBuffer
getMyPublicDHKey()
Gets the value of the 'myPublicDHKey' field. void
setMyPublicDHKey(ByteBuffer value)
Sets the value of the 'myPublicDHKey' field. String
getPeerPublicDHKey()
Gets the value of the 'peerPublicDHKey' field. void
setPeerPublicDHKey(String value)
Sets the value of the 'peerPublicDHKey' field. ByteBuffer
getSharedDHSecret()
Gets the value of the 'sharedDHSecret' field. void
setSharedDHSecret(ByteBuffer value)
Sets the value of the 'sharedDHSecret' field. ProtocolMode
getSelectedMode()
Gets the value of the 'selectedMode' field. void
setSelectedMode(ProtocolMode value)
Sets the value of the 'selectedMode' field. SharedHandshakeSecrets
getSharedHandshakeSecrets()
Gets the value of the 'sharedHandshakeSecrets' field. void
setSharedHandshakeSecrets(SharedHandshakeSecrets value)
Sets the value of the 'sharedHandshakeSecrets' field. InitiatorHelloMessage
getInitiatorHelloMessage()
Gets the value of the 'initiatorHelloMessage' field. void
setInitiatorHelloMessage(InitiatorHelloMessage value)
Sets the value of the 'initiatorHelloMessage' field. ResponderHelloMessage
getResponderHelloMessage()
Gets the value of the 'responderHelloMessage' field. void
setResponderHelloMessage(ResponderHelloMessage value)
Sets the value of the 'responderHelloMessage' field. ByteBuffer
getInitiatorHelloToResponderHelloBytes()
Gets the value of the 'initiatorHelloToResponderHelloBytes' field. void
setInitiatorHelloToResponderHelloBytes(ByteBuffer value)
Sets the value of the 'initiatorHelloToResponderHelloBytes' field. ByteBuffer
getInitiatorHandshakePayloadBytes()
Gets the value of the 'initiatorHandshakePayloadBytes' field. void
setInitiatorHandshakePayloadBytes(ByteBuffer value)
Sets the value of the 'initiatorHandshakePayloadBytes' field. ByteBuffer
getResponderHandshakePayloadBytes()
Gets the value of the 'responderHandshakePayloadBytes' field. void
setResponderHandshakePayloadBytes(ByteBuffer value)
Sets the value of the 'responderHandshakePayloadBytes' field. Integer
getAgreedMaxMessageSize()
Gets the value of the 'agreedMaxMessageSize' field. void
setAgreedMaxMessageSize(Integer value)
Sets the value of the 'agreedMaxMessageSize' field. static Schema
getClassSchema()
static BinaryMessageEncoder<AuthenticationProtocolCommonDetails>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<AuthenticationProtocolCommonDetails>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<AuthenticationProtocolCommonDetails>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this AuthenticationProtocolCommonDetails to a ByteBuffer. static AuthenticationProtocolCommonDetails
fromByteBuffer(ByteBuffer b)
Deserializes a AuthenticationProtocolCommonDetails from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static AuthenticationProtocolCommonDetails.Builder
newBuilder()
Creates a new AuthenticationProtocolCommonDetails RecordBuilder. static AuthenticationProtocolCommonDetails.Builder
newBuilder(AuthenticationProtocolCommonDetails.Builder other)
Creates a new AuthenticationProtocolCommonDetails RecordBuilder by copying an existing Builder. static AuthenticationProtocolCommonDetails.Builder
newBuilder(AuthenticationProtocolCommonDetails other)
Creates a new AuthenticationProtocolCommonDetails RecordBuilder by copying an existing AuthenticationProtocolCommonDetails instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AuthenticationProtocolCommonDetails
AuthenticationProtocolCommonDetails()
Default constructor.
-
AuthenticationProtocolCommonDetails
AuthenticationProtocolCommonDetails(String sessionId, Integer ourMaxMessageSize, Session session, String myPrivateDHKey, ByteBuffer myPublicDHKey, String peerPublicDHKey, ByteBuffer sharedDHSecret, ProtocolMode selectedMode, SharedHandshakeSecrets sharedHandshakeSecrets, InitiatorHelloMessage initiatorHelloMessage, ResponderHelloMessage responderHelloMessage, ByteBuffer initiatorHelloToResponderHelloBytes, ByteBuffer initiatorHandshakePayloadBytes, ByteBuffer responderHandshakePayloadBytes, Integer agreedMaxMessageSize)
All-args constructor.- Parameters:
sessionId
- The new value for sessionIdourMaxMessageSize
- The new value for ourMaxMessageSizesession
- The new value for sessionmyPrivateDHKey
- The new value for myPrivateDHKeymyPublicDHKey
- The new value for myPublicDHKeypeerPublicDHKey
- The new value for peerPublicDHKeysharedDHSecret
- The new value for sharedDHSecretselectedMode
- The new value for selectedModesharedHandshakeSecrets
- The new value for sharedHandshakeSecretsinitiatorHelloMessage
- The new value for initiatorHelloMessageresponderHelloMessage
- The new value for responderHelloMessageinitiatorHelloToResponderHelloBytes
- The new value for initiatorHelloToResponderHelloBytesinitiatorHandshakePayloadBytes
- The new value for initiatorHandshakePayloadBytesresponderHandshakePayloadBytes
- The new value for responderHandshakePayloadBytesagreedMaxMessageSize
- The new value for agreedMaxMessageSize
-
-
Method Detail
-
getSessionId
String getSessionId()
Gets the value of the 'sessionId' field.
- Returns:
The value of the 'sessionId' field.
-
setSessionId
void setSessionId(String value)
Sets the value of the 'sessionId' field.
- Parameters:
value
- the value to set.
-
getOurMaxMessageSize
int getOurMaxMessageSize()
Gets the value of the 'ourMaxMessageSize' field.
- Returns:
The value of the 'ourMaxMessageSize' field.
-
setOurMaxMessageSize
void setOurMaxMessageSize(int value)
Sets the value of the 'ourMaxMessageSize' field.
- Parameters:
value
- the value to set.
-
getSession
Session getSession()
Gets the value of the 'session' field.
- Returns:
The value of the 'session' field.
-
setSession
void setSession(Session value)
Sets the value of the 'session' field.
- Parameters:
value
- the value to set.
-
getMyPrivateDHKey
String getMyPrivateDHKey()
Gets the value of the 'myPrivateDHKey' field.
- Returns:
The value of the 'myPrivateDHKey' field.
-
setMyPrivateDHKey
void setMyPrivateDHKey(String value)
Sets the value of the 'myPrivateDHKey' field.
- Parameters:
value
- the value to set.
-
getMyPublicDHKey
ByteBuffer getMyPublicDHKey()
Gets the value of the 'myPublicDHKey' field.
- Returns:
The value of the 'myPublicDHKey' field.
-
setMyPublicDHKey
void setMyPublicDHKey(ByteBuffer value)
Sets the value of the 'myPublicDHKey' field.
- Parameters:
value
- the value to set.
-
getPeerPublicDHKey
String getPeerPublicDHKey()
Gets the value of the 'peerPublicDHKey' field.
- Returns:
The value of the 'peerPublicDHKey' field.
-
setPeerPublicDHKey
void setPeerPublicDHKey(String value)
Sets the value of the 'peerPublicDHKey' field.
- Parameters:
value
- the value to set.
-
getSharedDHSecret
ByteBuffer getSharedDHSecret()
Gets the value of the 'sharedDHSecret' field.
- Returns:
The value of the 'sharedDHSecret' field.
-
setSharedDHSecret
void setSharedDHSecret(ByteBuffer value)
Sets the value of the 'sharedDHSecret' field.
- Parameters:
value
- the value to set.
-
getSelectedMode
ProtocolMode getSelectedMode()
Gets the value of the 'selectedMode' field.
- Returns:
The value of the 'selectedMode' field.
-
setSelectedMode
void setSelectedMode(ProtocolMode value)
Sets the value of the 'selectedMode' field.
- Parameters:
value
- the value to set.
-
getSharedHandshakeSecrets
SharedHandshakeSecrets getSharedHandshakeSecrets()
Gets the value of the 'sharedHandshakeSecrets' field.
- Returns:
The value of the 'sharedHandshakeSecrets' field.
-
setSharedHandshakeSecrets
void setSharedHandshakeSecrets(SharedHandshakeSecrets value)
Sets the value of the 'sharedHandshakeSecrets' field.
- Parameters:
value
- the value to set.
-
getInitiatorHelloMessage
InitiatorHelloMessage getInitiatorHelloMessage()
Gets the value of the 'initiatorHelloMessage' field.
- Returns:
The value of the 'initiatorHelloMessage' field.
-
setInitiatorHelloMessage
void setInitiatorHelloMessage(InitiatorHelloMessage value)
Sets the value of the 'initiatorHelloMessage' field.
- Parameters:
value
- the value to set.
-
getResponderHelloMessage
ResponderHelloMessage getResponderHelloMessage()
Gets the value of the 'responderHelloMessage' field.
- Returns:
The value of the 'responderHelloMessage' field.
-
setResponderHelloMessage
void setResponderHelloMessage(ResponderHelloMessage value)
Sets the value of the 'responderHelloMessage' field.
- Parameters:
value
- the value to set.
-
getInitiatorHelloToResponderHelloBytes
ByteBuffer getInitiatorHelloToResponderHelloBytes()
Gets the value of the 'initiatorHelloToResponderHelloBytes' field.
- Returns:
The value of the 'initiatorHelloToResponderHelloBytes' field.
-
setInitiatorHelloToResponderHelloBytes
void setInitiatorHelloToResponderHelloBytes(ByteBuffer value)
Sets the value of the 'initiatorHelloToResponderHelloBytes' field.
- Parameters:
value
- the value to set.
-
getInitiatorHandshakePayloadBytes
ByteBuffer getInitiatorHandshakePayloadBytes()
Gets the value of the 'initiatorHandshakePayloadBytes' field.
- Returns:
The value of the 'initiatorHandshakePayloadBytes' field.
-
setInitiatorHandshakePayloadBytes
void setInitiatorHandshakePayloadBytes(ByteBuffer value)
Sets the value of the 'initiatorHandshakePayloadBytes' field.
- Parameters:
value
- the value to set.
-
getResponderHandshakePayloadBytes
ByteBuffer getResponderHandshakePayloadBytes()
Gets the value of the 'responderHandshakePayloadBytes' field.
- Returns:
The value of the 'responderHandshakePayloadBytes' field.
-
setResponderHandshakePayloadBytes
void setResponderHandshakePayloadBytes(ByteBuffer value)
Sets the value of the 'responderHandshakePayloadBytes' field.
- Parameters:
value
- the value to set.
-
getAgreedMaxMessageSize
Integer getAgreedMaxMessageSize()
Gets the value of the 'agreedMaxMessageSize' field.
- Returns:
The value of the 'agreedMaxMessageSize' field.
-
setAgreedMaxMessageSize
void setAgreedMaxMessageSize(Integer value)
Sets the value of the 'agreedMaxMessageSize' field.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<AuthenticationProtocolCommonDetails> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
- Returns:
the message encoder used by this class
-
getDecoder
static BinaryMessageDecoder<AuthenticationProtocolCommonDetails> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
- Returns:
the message decoder used by this class
-
createDecoder
static BinaryMessageDecoder<AuthenticationProtocolCommonDetails> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint- Returns:
a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this AuthenticationProtocolCommonDetails to a ByteBuffer.
- Returns:
a buffer holding the serialized data for this instance
-
fromByteBuffer
static AuthenticationProtocolCommonDetails fromByteBuffer(ByteBuffer b)
Deserializes a AuthenticationProtocolCommonDetails from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class- Returns:
a AuthenticationProtocolCommonDetails instance decoded from the given buffer
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static AuthenticationProtocolCommonDetails.Builder newBuilder()
Creates a new AuthenticationProtocolCommonDetails RecordBuilder.
- Returns:
A new AuthenticationProtocolCommonDetails RecordBuilder
-
newBuilder
static AuthenticationProtocolCommonDetails.Builder newBuilder(AuthenticationProtocolCommonDetails.Builder other)
Creates a new AuthenticationProtocolCommonDetails RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.- Returns:
A new AuthenticationProtocolCommonDetails RecordBuilder
-
newBuilder
static AuthenticationProtocolCommonDetails.Builder newBuilder(AuthenticationProtocolCommonDetails other)
Creates a new AuthenticationProtocolCommonDetails RecordBuilder by copying an existing AuthenticationProtocolCommonDetails instance.
- Parameters:
other
- The existing instance to copy.- Returns:
A new AuthenticationProtocolCommonDetails RecordBuilder
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-