Package net.corda.data.crypto
Class SecureHash.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class SecureHash.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for SecureHash instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
algorithm
public ByteBuffer
bytes
-
Method Summary
Modifier and Type Method Description String
getAlgorithm()
Gets the value of the 'algorithm' field. SecureHash.Builder
setAlgorithm(String value)
Sets the value of the 'algorithm' field. ByteBuffer
getBytes()
Gets the value of the 'bytes' field. SecureHash.Builder
setBytes(ByteBuffer value)
Sets the value of the 'bytes' field. boolean
hasAlgorithm()
Checks whether the 'algorithm' field has been set. SecureHash.Builder
clearAlgorithm()
Clears the value of the 'algorithm' field. boolean
hasBytes()
Checks whether the 'bytes' field has been set. SecureHash.Builder
clearBytes()
Clears the value of the 'bytes' field. SecureHash
build()
-
-
Method Detail
-
getAlgorithm
String getAlgorithm()
Gets the value of the 'algorithm' field.
-
setAlgorithm
SecureHash.Builder setAlgorithm(String value)
Sets the value of the 'algorithm' field.
- Parameters:
value
- The value of 'algorithm'.
-
getBytes
ByteBuffer getBytes()
Gets the value of the 'bytes' field.
-
setBytes
SecureHash.Builder setBytes(ByteBuffer value)
Sets the value of the 'bytes' field.
- Parameters:
value
- The value of 'bytes'.
-
hasAlgorithm
boolean hasAlgorithm()
Checks whether the 'algorithm' field has been set.
-
clearAlgorithm
SecureHash.Builder clearAlgorithm()
Clears the value of the 'algorithm' field.
-
hasBytes
boolean hasBytes()
Checks whether the 'bytes' field has been set.
-
clearBytes
SecureHash.Builder clearBytes()
Clears the value of the 'bytes' field.
-
build
SecureHash build()
-
-
-
-