Class CryptoSignatureWithKey.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CryptoSignatureWithKey.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CryptoSignatureWithKey instances.
-
-
Field Summary
Fields Modifier and Type Field Description public ByteBuffer
publicKey
public ByteBuffer
bytes
-
Method Summary
Modifier and Type Method Description ByteBuffer
getPublicKey()
Gets the value of the 'publicKey' field. CryptoSignatureWithKey.Builder
setPublicKey(ByteBuffer value)
Sets the value of the 'publicKey' field. ByteBuffer
getBytes()
Gets the value of the 'bytes' field. CryptoSignatureWithKey.Builder
setBytes(ByteBuffer value)
Sets the value of the 'bytes' field. boolean
hasPublicKey()
Checks whether the 'publicKey' field has been set. CryptoSignatureWithKey.Builder
clearPublicKey()
Clears the value of the 'publicKey' field. boolean
hasBytes()
Checks whether the 'bytes' field has been set. CryptoSignatureWithKey.Builder
clearBytes()
Clears the value of the 'bytes' field. CryptoSignatureWithKey
build()
-
-
Method Detail
-
getPublicKey
ByteBuffer getPublicKey()
Gets the value of the 'publicKey' field. Public keys which can be used to verify the signature
- Returns:
The value.
-
setPublicKey
CryptoSignatureWithKey.Builder setPublicKey(ByteBuffer value)
Sets the value of the 'publicKey' field. Public keys which can be used to verify the signature
- Parameters:
value
- The value of 'publicKey'.- Returns:
This builder.
-
getBytes
ByteBuffer getBytes()
Gets the value of the 'bytes' field. Byte array of the signature, exactly as returned by crypto signing operations
- Returns:
The value.
-
setBytes
CryptoSignatureWithKey.Builder setBytes(ByteBuffer value)
Sets the value of the 'bytes' field. Byte array of the signature, exactly as returned by crypto signing operations
- Parameters:
value
- The value of 'bytes'.- Returns:
This builder.
-
hasPublicKey
boolean hasPublicKey()
Checks whether the 'publicKey' field has been set. Public keys which can be used to verify the signature
- Returns:
True if the 'publicKey' field has been set, false otherwise.
-
clearPublicKey
CryptoSignatureWithKey.Builder clearPublicKey()
Clears the value of the 'publicKey' field. Public keys which can be used to verify the signature
- Returns:
This builder.
-
hasBytes
boolean hasBytes()
Checks whether the 'bytes' field has been set. Byte array of the signature, exactly as returned by crypto signing operations
- Returns:
True if the 'bytes' field has been set, false otherwise.
-
clearBytes
CryptoSignatureWithKey.Builder clearBytes()
Clears the value of the 'bytes' field. Byte array of the signature, exactly as returned by crypto signing operations
- Returns:
This builder.
-
build
CryptoSignatureWithKey build()
-
-
-
-