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.

    • Constructor Detail

    • 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.

      • 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.

      • 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.