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

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

Best Java code snippets using com.oracle.bmc.keymanagement.model.EncryptDataDetails$Builder (Showing top 3 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;
  }
}
origin: oracle/oci-java-sdk

/**
 * Create a new builder.
 */
public static Builder builder() {
  return new Builder();
}
com.oracle.bmc.keymanagement.modelEncryptDataDetails$Builder

Most used methods

  • keyId
  • plaintext
  • <init>
  • associatedData
  • build

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • JTable (javax.swing)
  • From CI to AI: The AI layer in your organization
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