Class CreateKeyOptions

java.lang.Object
codes.grow.packages.vault.CreateKeyOptions

public final class CreateKeyOptions extends Object
  • Method Details

    • ofType

      public static CreateKeyOptions ofType(String type)
      Options for a key type with every other setting at its default.
      Parameters:
      type - key type, e.g. aes256-gcm96, chacha20-poly1305, ed25519, ecdsa-p256, rsa-2048, hmac
      Returns:
      the options
    • builder

      public static CreateKeyOptions.Builder builder()
      Starts a builder (default type aes256-gcm96).
      Returns:
      a new builder