Interface KeyUsage.Builder

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

@Mutable @NotThreadSafe public static interface KeyUsage.Builder extends SdkPojo, CopyableBuilder<KeyUsage.Builder,KeyUsage>
  • Method Details

    • critical

      KeyUsage.Builder critical(Boolean critical)

      Sets the key usage extension to critical.

      Parameters:
      critical - Sets the key usage extension to critical.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageFlags

      KeyUsage.Builder usageFlags(KeyUsageFlags usageFlags)

      The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.

      Parameters:
      usageFlags - The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageFlags

      default KeyUsage.Builder usageFlags(Consumer<KeyUsageFlags.Builder> usageFlags)

      The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.

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

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

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