Class RydeEncoder.Builder

  • Enclosing class:
    RydeEncoder

    public static class RydeEncoder.Builder
    extends java.lang.Object
    Builder for RydeEncoder.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RydeEncoder build()
      Returns the built RydeEncoder.
      RydeEncoder.Builder setFileMetadata​(java.lang.String filenamePrefix, long dataLength, org.joda.time.DateTime modified)
      Sets the information about the unencoded data that will follow.
      RydeEncoder.Builder setRydeOutput​(java.io.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.
      RydeEncoder.Builder setSignatureOutput​(java.io.OutputStream sigOutput, org.bouncycastle.openpgp.PGPKeyPair signingKey)
      Sets the OutputStream for the signature, and the key used to sign.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setRydeOutput

        public RydeEncoder.Builder setRydeOutput​(java.io.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​(java.io.OutputStream sigOutput,
                                                      org.bouncycastle.openpgp.PGPKeyPair signingKey)
        Sets the OutputStream for the signature, and the key used to sign.
      • setFileMetadata

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