/** * <p> * The length of the data encryption key in bytes. For example, use the value 64 to generate a 512-bit data key (64 * bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use the * <code>KeySpec</code> field instead of this one. * </p> * * @param numberOfBytes * The length of the data encryption key in bytes. For example, use the value 64 to generate a 512-bit data * key (64 bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that * you use the <code>KeySpec</code> field instead of this one. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateDataKeyRequest withNumberOfBytes(Integer numberOfBytes) { setNumberOfBytes(numberOfBytes); return this; }
/** * <p> * The length of the data encryption key in bytes. For example, use the value 64 to generate a 512-bit data key (64 * bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use the * <code>KeySpec</code> field instead of this one. * </p> * * @param numberOfBytes * The length of the data encryption key in bytes. For example, use the value 64 to generate a 512-bit data * key (64 bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that * you use the <code>KeySpec</code> field instead of this one. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateDataKeyRequest withNumberOfBytes(Integer numberOfBytes) { setNumberOfBytes(numberOfBytes); return this; }
/** * <p> * The length of the data encryption key in bytes. For example, use the value 64 to generate a 512-bit data key (64 * bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use the * <code>KeySpec</code> field instead of this one. * </p> * * @param numberOfBytes * The length of the data encryption key in bytes. For example, use the value 64 to generate a 512-bit data * key (64 bytes is 512 bits). For common key lengths (128-bit and 256-bit symmetric keys), we recommend that * you use the <code>KeySpec</code> field instead of this one. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateDataKeyRequest withNumberOfBytes(Integer numberOfBytes) { setNumberOfBytes(numberOfBytes); return this; }
req.setNumberOfBytes(256 / 8); req.setEncryptionContext(ec);
req.setNumberOfBytes(256 / 8); req.setEncryptionContext(ec);