Tabnine Logo
EncryptDataDetails$Builder.keyId
Code IndexAdd Tabnine to your IDE (free)

How to use
keyId
method
in
com.oracle.bmc.keymanagement.model.EncryptDataDetails$Builder

Best Java code snippets using com.oracle.bmc.keymanagement.model.EncryptDataDetails$Builder.keyId (Showing top 2 results out of 315)

origin: oracle/oci-java-sdk

public static String encryptTest(KmsCryptoClient kmsCryptoClient, String keyId) {
  System.out.println("Encrypt Test: ");
  String plaintext = "I love OCI!";
  EncryptDataDetails encryptDataDetails =
      EncryptDataDetails.builder()
          .keyId(keyId)
          .plaintext(Base64.encodeBase64String(plaintext.getBytes()))
          .build();
  EncryptRequest encryptRequest =
      EncryptRequest.builder().encryptDataDetails(encryptDataDetails).build();
  EncryptResponse response = kmsCryptoClient.encrypt(encryptRequest);
  System.out.println("Plaintext: " + plaintext);
  System.out.println("Cipheretext: " + response.getEncryptedData().getCiphertext());
  System.out.println();
  return response.getEncryptedData().getCiphertext();
}
origin: oracle/oci-java-sdk

  @com.fasterxml.jackson.annotation.JsonIgnore
  public Builder copy(EncryptDataDetails o) {
    Builder copiedBuilder =
        associatedData(o.getAssociatedData())
            .keyId(o.getKeyId())
            .plaintext(o.getPlaintext());
    copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
    return copiedBuilder;
  }
}
com.oracle.bmc.keymanagement.modelEncryptDataDetails$BuilderkeyId

Popular methods of EncryptDataDetails$Builder

  • plaintext
  • <init>
  • associatedData
  • build

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JTable (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now