Class WrappedImportKey.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • keyMaterial

        public WrappedImportKey.Builder keyMaterial​(String keyMaterial)
        The key material to import, wrapped by the vault’s RSA public wrapping key and base64-encoded.
        Parameters:
        keyMaterial - the value to set
        Returns:
        this builder
      • wrappingAlgorithm

        public WrappedImportKey.Builder wrappingAlgorithm​(WrappedImportKey.WrappingAlgorithm wrappingAlgorithm)
        The wrapping mechanism to use during key import.

        RSA_OAEP_AES_SHA256 invokes the RSA AES key wrap mechanism, which generates a temporary AES key. The temporary AES key is wrapped by the vault’s RSA public wrapping key, creating a wrapped temporary AES key. The temporary AES key is also used to wrap the private key material. The wrapped temporary AES key and the wrapped exportable key material are concatenated, producing concatenated blob output that jointly represents them. RSA_OAEP_SHA256 means that the exportable key material is wrapped by the vault’s RSA public wrapping key.

        Parameters:
        wrappingAlgorithm - the value to set
        Returns:
        this builder