Package net.corda.data.p2p.crypto
Class AuthenticatedDataMessage.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class AuthenticatedDataMessage.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for AuthenticatedDataMessage instances.
-
-
Field Summary
Fields Modifier and Type Field Description public CommonHeader
header
public CommonHeader.Builder
headerBuilder
public ByteBuffer
payload
public ByteBuffer
authTag
-
Method Summary
Modifier and Type Method Description CommonHeader
getHeader()
Gets the value of the 'header' field. AuthenticatedDataMessage.Builder
setHeader(CommonHeader value)
Sets the value of the 'header' field. CommonHeader.Builder
getHeaderBuilder()
Gets the Builder instance for the 'header' field and creates one if it doesn't exist yet. AuthenticatedDataMessage.Builder
setHeaderBuilder(CommonHeader.Builder value)
Sets the Builder instance for the 'header' field ByteBuffer
getPayload()
Gets the value of the 'payload' field. AuthenticatedDataMessage.Builder
setPayload(ByteBuffer value)
Sets the value of the 'payload' field. ByteBuffer
getAuthTag()
Gets the value of the 'authTag' field. AuthenticatedDataMessage.Builder
setAuthTag(ByteBuffer value)
Sets the value of the 'authTag' field. boolean
hasHeader()
Checks whether the 'header' field has been set. boolean
hasHeaderBuilder()
Checks whether the 'header' field has an active Builder instance AuthenticatedDataMessage.Builder
clearHeader()
Clears the value of the 'header' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. AuthenticatedDataMessage.Builder
clearPayload()
Clears the value of the 'payload' field. boolean
hasAuthTag()
Checks whether the 'authTag' field has been set. AuthenticatedDataMessage.Builder
clearAuthTag()
Clears the value of the 'authTag' field. AuthenticatedDataMessage
build()
-
-
Method Detail
-
getHeader
CommonHeader getHeader()
Gets the value of the 'header' field.
-
setHeader
AuthenticatedDataMessage.Builder setHeader(CommonHeader value)
Sets the value of the 'header' field.
- Parameters:
value
- The value of 'header'.
-
getHeaderBuilder
CommonHeader.Builder getHeaderBuilder()
Gets the Builder instance for the 'header' field and creates one if it doesn't exist yet.
-
setHeaderBuilder
AuthenticatedDataMessage.Builder setHeaderBuilder(CommonHeader.Builder value)
Sets the Builder instance for the 'header' field
- Parameters:
value
- The builder instance that must be set.
-
getPayload
ByteBuffer getPayload()
Gets the value of the 'payload' field.
-
setPayload
AuthenticatedDataMessage.Builder setPayload(ByteBuffer value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
getAuthTag
ByteBuffer getAuthTag()
Gets the value of the 'authTag' field.
-
setAuthTag
AuthenticatedDataMessage.Builder setAuthTag(ByteBuffer value)
Sets the value of the 'authTag' field.
- Parameters:
value
- The value of 'authTag'.
-
hasHeader
boolean hasHeader()
Checks whether the 'header' field has been set.
-
hasHeaderBuilder
boolean hasHeaderBuilder()
Checks whether the 'header' field has an active Builder instance
-
clearHeader
AuthenticatedDataMessage.Builder clearHeader()
Clears the value of the 'header' field.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
AuthenticatedDataMessage.Builder clearPayload()
Clears the value of the 'payload' field.
-
hasAuthTag
boolean hasAuthTag()
Checks whether the 'authTag' field has been set.
-
clearAuthTag
AuthenticatedDataMessage.Builder clearAuthTag()
Clears the value of the 'authTag' field.
-
build
AuthenticatedDataMessage build()
-
-
-
-