Class SignedData.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class SignedData.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for SignedData instances.
-
-
Field Summary
Fields Modifier and Type Field Description public ByteBuffer
data
public CryptoSignatureWithKey
signature
public CryptoSignatureWithKey.Builder
signatureBuilder
public CryptoSignatureSpec
signatureSpec
public CryptoSignatureSpec.Builder
signatureSpecBuilder
-
Method Summary
Modifier and Type Method Description ByteBuffer
getData()
Gets the value of the 'data' field. SignedData.Builder
setData(ByteBuffer value)
Sets the value of the 'data' field. CryptoSignatureWithKey
getSignature()
Gets the value of the 'signature' field. SignedData.Builder
setSignature(CryptoSignatureWithKey value)
Sets the value of the 'signature' field. CryptoSignatureWithKey.Builder
getSignatureBuilder()
Gets the Builder instance for the 'signature' field and creates one if it doesn't exist yet. SignedData.Builder
setSignatureBuilder(CryptoSignatureWithKey.Builder value)
Sets the Builder instance for the 'signature' field Signature over the data byte array. CryptoSignatureSpec
getSignatureSpec()
Gets the value of the 'signatureSpec' field. SignedData.Builder
setSignatureSpec(CryptoSignatureSpec value)
Sets the value of the 'signatureSpec' field. CryptoSignatureSpec.Builder
getSignatureSpecBuilder()
Gets the Builder instance for the 'signatureSpec' field and creates one if it doesn't exist yet. SignedData.Builder
setSignatureSpecBuilder(CryptoSignatureSpec.Builder value)
Sets the Builder instance for the 'signatureSpec' field Signature spec of the signature. boolean
hasData()
Checks whether the 'data' field has been set. SignedData.Builder
clearData()
Clears the value of the 'data' field. boolean
hasSignature()
Checks whether the 'signature' field has been set. boolean
hasSignatureBuilder()
Checks whether the 'signature' field has an active Builder instance Signature over the data byte array. SignedData.Builder
clearSignature()
Clears the value of the 'signature' field. boolean
hasSignatureSpec()
Checks whether the 'signatureSpec' field has been set. boolean
hasSignatureSpecBuilder()
Checks whether the 'signatureSpec' field has an active Builder instance Signature spec of the signature. SignedData.Builder
clearSignatureSpec()
Clears the value of the 'signatureSpec' field. SignedData
build()
-
-
Method Detail
-
getData
ByteBuffer getData()
Gets the value of the 'data' field. Data serialized to a byte array and signed.
-
setData
SignedData.Builder setData(ByteBuffer value)
Sets the value of the 'data' field. Data serialized to a byte array and signed.
- Parameters:
value
- The value of 'data'.
-
getSignature
CryptoSignatureWithKey getSignature()
Gets the value of the 'signature' field. Signature over the data byte array.
-
setSignature
SignedData.Builder setSignature(CryptoSignatureWithKey value)
Sets the value of the 'signature' field. Signature over the data byte array.
- Parameters:
value
- The value of 'signature'.
-
getSignatureBuilder
CryptoSignatureWithKey.Builder getSignatureBuilder()
Gets the Builder instance for the 'signature' field and creates one if it doesn't exist yet. Signature over the data byte array.
-
setSignatureBuilder
SignedData.Builder setSignatureBuilder(CryptoSignatureWithKey.Builder value)
Sets the Builder instance for the 'signature' field Signature over the data byte array.
- Parameters:
value
- The builder instance that must be set.
-
getSignatureSpec
CryptoSignatureSpec getSignatureSpec()
Gets the value of the 'signatureSpec' field. Signature spec of the signature.
-
setSignatureSpec
SignedData.Builder setSignatureSpec(CryptoSignatureSpec value)
Sets the value of the 'signatureSpec' field. Signature spec of the signature.
- Parameters:
value
- The value of 'signatureSpec'.
-
getSignatureSpecBuilder
CryptoSignatureSpec.Builder getSignatureSpecBuilder()
Gets the Builder instance for the 'signatureSpec' field and creates one if it doesn't exist yet. Signature spec of the signature.
-
setSignatureSpecBuilder
SignedData.Builder setSignatureSpecBuilder(CryptoSignatureSpec.Builder value)
Sets the Builder instance for the 'signatureSpec' field Signature spec of the signature.
- Parameters:
value
- The builder instance that must be set.
-
hasData
boolean hasData()
Checks whether the 'data' field has been set. Data serialized to a byte array and signed.
-
clearData
SignedData.Builder clearData()
Clears the value of the 'data' field. Data serialized to a byte array and signed.
-
hasSignature
boolean hasSignature()
Checks whether the 'signature' field has been set. Signature over the data byte array.
-
hasSignatureBuilder
boolean hasSignatureBuilder()
Checks whether the 'signature' field has an active Builder instance Signature over the data byte array.
-
clearSignature
SignedData.Builder clearSignature()
Clears the value of the 'signature' field. Signature over the data byte array.
-
hasSignatureSpec
boolean hasSignatureSpec()
Checks whether the 'signatureSpec' field has been set. Signature spec of the signature.
-
hasSignatureSpecBuilder
boolean hasSignatureSpecBuilder()
Checks whether the 'signatureSpec' field has an active Builder instance Signature spec of the signature.
-
clearSignatureSpec
SignedData.Builder clearSignatureSpec()
Clears the value of the 'signatureSpec' field. Signature spec of the signature.
-
build
SignedData build()
-
-
-
-