Uses of Class
org.c02e.jpgpj.FileMetadata
Packages that use FileMetadata
-
Uses of FileMetadata in org.c02e.jpgpj
Fields in org.c02e.jpgpj declared as FileMetadataModifier and TypeFieldDescriptionprivate final FileMetadataDecryptionResult.fileMetadataprotected final FileMetadataEncryptor.SigningOutputStream.metaMethods in org.c02e.jpgpj that return FileMetadataModifier and TypeMethodDescriptionDecrypts the first specified file to the output location specified by the second file, and (ifDecryptor.isVerificationRequired()) verifies its signatures.Decryptor.decrypt(InputStream ciphertext, OutputStream plaintext) Decrypts the specified PGP message into the specified output stream, and (ifDecryptor.isVerificationRequired()) verifies the message signatures.Decrypts the first specified file to the output location specified by the second file, and (ifDecryptor.isVerificationRequired()) verifies its signatures.Signs, compresses, and encrypts the specified file to the output location specified by the second file.Encryptor.encrypt(InputStream plaintext, OutputStream ciphertext) Signs, compresses, and encrypts the specified content as a PGP message into the specified output stream (with no optional metadata).Encryptor.encrypt(InputStream plaintext, OutputStream ciphertext, FileMetadata meta) Signs, compresses, and encrypts the specified content as a PGP message into the specified output stream with the specified content metadata.Signs, compresses, and encrypts the specified file to the output location specified by the second file.Encryptor.encryptBytes(byte[] data, String name, File ciphertext) Encryptor.encryptBytes(byte[] data, String name, OutputStream ciphertext) Encryptor.encryptBytes(byte[] data, String name, Path ciphertext) DecryptionResult.getFileMetadata()FileMetadata.withFormat(FileMetadata.Format x) FileMetadata.withLastModified(long x) FileMetadata.withLength(long x) Methods in org.c02e.jpgpj that return types with arguments of type FileMetadataModifier and TypeMethodDescriptionprotected List<FileMetadata> Decryptor.unpack(Iterator<?> packets, OutputStream plaintext) Recursively unpacks the pgp message packets, writing the decrypted message content into the output stream.Methods in org.c02e.jpgpj with parameters of type FileMetadataModifier and TypeMethodDescriptionprotected OutputStreamEncryptor.armor(OutputStream out, FileMetadata meta) Wraps with stream that outputs ASCII-armored text - including configuring its armor headers.intEncryptor.bestPacketSize(FileMetadata meta) Calculates optimal PGP packet size, based on plaintext length.protected org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGeneratorEncryptor.buildPublicKeyEncryptor(Key key, FileMetadata meta) Builds a PublicKeyKeyEncryptionMethodGenerator for the specified key.protected org.bouncycastle.openpgp.PGPSignatureGeneratorEncryptor.buildSigner(Key key, FileMetadata meta) Builds a PGPSignatureGenerator for the specified key and content.protected org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGeneratorEncryptor.buildSymmetricKeyEncryptor(FileMetadata meta) Builds a PublicKeyKeyEncryptionMethodGenerator for the specified key to encrypt the file.protected OutputStreamEncryptor.compress(OutputStream out, FileMetadata meta) Wraps with stream that outputs compressed data packet.protected longEncryptor.copy(InputStream i, OutputStream o, Encryptor.SigningOutputStream s, FileMetadata meta) Copies the content from the specified input stream to the specified output stream.Encryptor.encrypt(InputStream plaintext, OutputStream ciphertext, FileMetadata meta) Signs, compresses, and encrypts the specified content as a PGP message into the specified output stream with the specified content metadata.protected OutputStreamEncryptor.encrypt(OutputStream out, FileMetadata meta) Wraps with stream that outputs encrypted data packet.byte[]Encryptor.getCompressionBuffer(FileMetadata meta) Internal buffer for compressed-data packets, sized based on plaintext length.byte[]Encryptor.getCopyBuffer(FileMetadata meta) Internal buffer for copying plaintext into the encryption pipeline, sized based on plaintext length.byte[]Encryptor.getEncryptionBuffer(FileMetadata meta) Internal buffer for encrypted-data packets, sized based on plaintext length.byte[]Encryptor.getLiteralBuffer(FileMetadata meta) Internal buffer for literal-data packets, sized based on plaintext length.protected OutputStreamEncryptor.packet(OutputStream out, FileMetadata meta) Wraps with stream that ouputs literal data packet.voidEncryptedAsciiArmorHeadersCallback.prepareAsciiArmoredHeaders(Encryptor encryptor, FileMetadata meta, EncryptedAsciiArmorHeadersManipulator manipulator) Invoked by the encryptor after updating the settings with the configured global headers.Encryptor.prepareCiphertextOutputStream(OutputStream ciphertext, FileMetadata meta, boolean closeOriginal) Builds a new wrapperOutputStreamto wrap the original specifiedOutputStream, where everything written to the it is automatically encrypted+compressed+signed according to the encryptor's configuration, and then written to the original stream.Encryptor.prepareCiphertextOutputStream(FileMetadata plainMeta, File ciphertext) Builds a wrapperOutputStreamwhere everything written to the it is encrypted+compressed+signed according to the encryptor's configuration, and then written to the specified target file.Encryptor.prepareCiphertextOutputStream(FileMetadata plainMeta, Path ciphertext) Builds a wrapperOutputStreamwhere everything written to the it is encrypted+compressed+signed according to the encryptor's configuration, and then written to the specified target file.protected Encryptor.SigningOutputStreamEncryptor.sign(OutputStream out, FileMetadata meta) Wraps with stream that outputs signature packets as header and footer to envelope.Constructors in org.c02e.jpgpj with parameters of type FileMetadataModifierConstructorDescriptionDecryptionResult(FileMetadata fileMetadata, boolean armored, Collection<String> armorHeaders) SigningOutputStream(OutputStream out, List<Key> keys, FileMetadata meta)