Class RydeEncoder.Builder

java.lang.Object
google.registry.rde.RydeEncoder.Builder
Enclosing class:
RydeEncoder

public static class RydeEncoder.Builder extends Object
Builder for RydeEncoder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setRydeOutput

      public RydeEncoder.Builder setRydeOutput(OutputStream rydeOutput, org.bouncycastle.openpgp.PGPPublicKey receiverKey, org.bouncycastle.openpgp.PGPPublicKey... moreReceiverKeys)
      Sets the OutputStream for the Ryde-encoded data, and the keys used for the encryption.
    • setSignatureOutput

      public RydeEncoder.Builder setSignatureOutput(OutputStream sigOutput, org.bouncycastle.openpgp.PGPKeyPair signingKey)
      Sets the OutputStream for the signature, and the key used to sign.
    • setFileMetadata

      public RydeEncoder.Builder setFileMetadata(String filenamePrefix, long dataLength, org.joda.time.DateTime modified)
      Sets the information about the unencoded data that will follow.
    • build

      public RydeEncoder build()
      Returns the built RydeEncoder.