Class SignRpcCommand.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class SignRpcCommand.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for SignRpcCommand instances.
-
-
Field Summary
Fields Modifier and Type Field Description public ByteBuffer
publicKey
public CryptoSignatureSpec
signatureSpec
public CryptoSignatureSpec.Builder
signatureSpecBuilder
public ByteBuffer
bytes
public KeyValuePairList
context
public KeyValuePairList.Builder
contextBuilder
-
Method Summary
Modifier and Type Method Description ByteBuffer
getPublicKey()
Gets the value of the 'publicKey' field. SignRpcCommand.Builder
setPublicKey(ByteBuffer value)
Sets the value of the 'publicKey' field. CryptoSignatureSpec
getSignatureSpec()
Gets the value of the 'signatureSpec' field. SignRpcCommand.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. SignRpcCommand.Builder
setSignatureSpecBuilder(CryptoSignatureSpec.Builder value)
Sets the Builder instance for the 'signatureSpec' field Overrides the default signature scheme, otherwise the default scheme is used ByteBuffer
getBytes()
Gets the value of the 'bytes' field. SignRpcCommand.Builder
setBytes(ByteBuffer value)
Sets the value of the 'bytes' field. KeyValuePairList
getContext()
Gets the value of the 'context' field. SignRpcCommand.Builder
setContext(KeyValuePairList value)
Sets the value of the 'context' field. KeyValuePairList.Builder
getContextBuilder()
Gets the Builder instance for the 'context' field and creates one if it doesn't exist yet. SignRpcCommand.Builder
setContextBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'context' field The optional key/value operation specific context boolean
hasPublicKey()
Checks whether the 'publicKey' field has been set. SignRpcCommand.Builder
clearPublicKey()
Clears the value of the 'publicKey' field. boolean
hasSignatureSpec()
Checks whether the 'signatureSpec' field has been set. boolean
hasSignatureSpecBuilder()
Checks whether the 'signatureSpec' field has an active Builder instance Overrides the default signature scheme, otherwise the default scheme is used SignRpcCommand.Builder
clearSignatureSpec()
Clears the value of the 'signatureSpec' field. boolean
hasBytes()
Checks whether the 'bytes' field has been set. SignRpcCommand.Builder
clearBytes()
Clears the value of the 'bytes' field. boolean
hasContext()
Checks whether the 'context' field has been set. boolean
hasContextBuilder()
Checks whether the 'context' field has an active Builder instance The optional key/value operation specific context SignRpcCommand.Builder
clearContext()
Clears the value of the 'context' field. SignRpcCommand
build()
-
-
Method Detail
-
getPublicKey
ByteBuffer getPublicKey()
Gets the value of the 'publicKey' field. It's used to look up the matching private key information and sign the data
-
setPublicKey
SignRpcCommand.Builder setPublicKey(ByteBuffer value)
Sets the value of the 'publicKey' field. It's used to look up the matching private key information and sign the data
- Parameters:
value
- The value of 'publicKey'.
-
getSignatureSpec
CryptoSignatureSpec getSignatureSpec()
Gets the value of the 'signatureSpec' field. Overrides the default signature scheme, otherwise the default scheme is used
-
setSignatureSpec
SignRpcCommand.Builder setSignatureSpec(CryptoSignatureSpec value)
Sets the value of the 'signatureSpec' field. Overrides the default signature scheme, otherwise the default scheme is used
- 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. Overrides the default signature scheme, otherwise the default scheme is used
-
setSignatureSpecBuilder
SignRpcCommand.Builder setSignatureSpecBuilder(CryptoSignatureSpec.Builder value)
Sets the Builder instance for the 'signatureSpec' field Overrides the default signature scheme, otherwise the default scheme is used
- Parameters:
value
- The builder instance that must be set.
-
getBytes
ByteBuffer getBytes()
Gets the value of the 'bytes' field. The data to sign.
-
setBytes
SignRpcCommand.Builder setBytes(ByteBuffer value)
Sets the value of the 'bytes' field. The data to sign.
- Parameters:
value
- The value of 'bytes'.
-
getContext
KeyValuePairList getContext()
Gets the value of the 'context' field. The optional key/value operation specific context
-
setContext
SignRpcCommand.Builder setContext(KeyValuePairList value)
Sets the value of the 'context' field. The optional key/value operation specific context
- Parameters:
value
- The value of 'context'.
-
getContextBuilder
KeyValuePairList.Builder getContextBuilder()
Gets the Builder instance for the 'context' field and creates one if it doesn't exist yet. The optional key/value operation specific context
-
setContextBuilder
SignRpcCommand.Builder setContextBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'context' field The optional key/value operation specific context
- Parameters:
value
- The builder instance that must be set.
-
hasPublicKey
boolean hasPublicKey()
Checks whether the 'publicKey' field has been set. It's used to look up the matching private key information and sign the data
-
clearPublicKey
SignRpcCommand.Builder clearPublicKey()
Clears the value of the 'publicKey' field. It's used to look up the matching private key information and sign the data
-
hasSignatureSpec
boolean hasSignatureSpec()
Checks whether the 'signatureSpec' field has been set. Overrides the default signature scheme, otherwise the default scheme is used
-
hasSignatureSpecBuilder
boolean hasSignatureSpecBuilder()
Checks whether the 'signatureSpec' field has an active Builder instance Overrides the default signature scheme, otherwise the default scheme is used
-
clearSignatureSpec
SignRpcCommand.Builder clearSignatureSpec()
Clears the value of the 'signatureSpec' field. Overrides the default signature scheme, otherwise the default scheme is used
-
hasBytes
boolean hasBytes()
Checks whether the 'bytes' field has been set. The data to sign.
-
clearBytes
SignRpcCommand.Builder clearBytes()
Clears the value of the 'bytes' field. The data to sign.
-
hasContext
boolean hasContext()
Checks whether the 'context' field has been set. The optional key/value operation specific context
-
hasContextBuilder
boolean hasContextBuilder()
Checks whether the 'context' field has an active Builder instance The optional key/value operation specific context
-
clearContext
SignRpcCommand.Builder clearContext()
Clears the value of the 'context' field. The optional key/value operation specific context
-
build
SignRpcCommand build()
-
-
-
-