Interface CustomCodeSigning.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CustomCodeSigning.Builder,CustomCodeSigning>, SdkBuilder<CustomCodeSigning.Builder,CustomCodeSigning>, SdkPojo
Enclosing class:
CustomCodeSigning

public static interface CustomCodeSigning.Builder extends SdkPojo, CopyableBuilder<CustomCodeSigning.Builder,CustomCodeSigning>
  • Method Details

    • signature

      The signature for the file.

      Parameters:
      signature - The signature for the file.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signature

      The signature for the file.

      This is a convenience method that creates an instance of the CodeSigningSignature.Builder avoiding the need to create one manually via CodeSigningSignature.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to signature(CodeSigningSignature).

      Parameters:
      signature - a consumer that will call methods on CodeSigningSignature.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • certificateChain

      CustomCodeSigning.Builder certificateChain(CodeSigningCertificateChain certificateChain)

      The certificate chain.

      Parameters:
      certificateChain - The certificate chain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificateChain

      default CustomCodeSigning.Builder certificateChain(Consumer<CodeSigningCertificateChain.Builder> certificateChain)

      The certificate chain.

      This is a convenience method that creates an instance of the CodeSigningCertificateChain.Builder avoiding the need to create one manually via CodeSigningCertificateChain.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to certificateChain(CodeSigningCertificateChain).

      Parameters:
      certificateChain - a consumer that will call methods on CodeSigningCertificateChain.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • hashAlgorithm

      CustomCodeSigning.Builder hashAlgorithm(String hashAlgorithm)

      The hash algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses SHA256 or SHA1, so you can pass either of them based on which was used for generating the signature.

      Parameters:
      hashAlgorithm - The hash algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses SHA256 or SHA1, so you can pass either of them based on which was used for generating the signature.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signatureAlgorithm

      CustomCodeSigning.Builder signatureAlgorithm(String signatureAlgorithm)

      The signature algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses ECDSA or RSA, so you can pass either of them based on which was used for generating the signature.

      Parameters:
      signatureAlgorithm - The signature algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses ECDSA or RSA, so you can pass either of them based on which was used for generating the signature.
      Returns:
      Returns a reference to this object so that method calls can be chained together.