Class OpenPgpMetadata.Builder
- java.lang.Object
-
- org.pgpainless.decryption_verification.OpenPgpMetadata.Builder
-
- Enclosing class:
- OpenPgpMetadata
public static class OpenPgpMetadata.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInvalidDetachedSignature(SignatureVerification signatureVerification, SignatureValidationException e)
void
addInvalidInbandSignature(SignatureVerification signatureVerification, SignatureValidationException e)
OpenPgpMetadata.Builder
addRecipientKeyId(Long keyId)
void
addVerifiedDetachedSignature(SignatureVerification signatureVerification)
void
addVerifiedInbandSignature(SignatureVerification signatureVerification)
OpenPgpMetadata
build()
OpenPgpMetadata.Builder
setCompressionAlgorithm(CompressionAlgorithm algorithm)
OpenPgpMetadata.Builder
setDecryptionKey(SubkeyIdentifier decryptionKey)
OpenPgpMetadata.Builder
setFileEncoding(StreamEncoding encoding)
OpenPgpMetadata.Builder
setFileName(String fileName)
OpenPgpMetadata.Builder
setModificationDate(Date modificationDate)
OpenPgpMetadata.Builder
setSessionKey(SessionKey sessionKey)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
-
Method Detail
-
addRecipientKeyId
public OpenPgpMetadata.Builder addRecipientKeyId(Long keyId)
-
setDecryptionKey
public OpenPgpMetadata.Builder setDecryptionKey(SubkeyIdentifier decryptionKey)
-
setSessionKey
public OpenPgpMetadata.Builder setSessionKey(SessionKey sessionKey)
-
setCompressionAlgorithm
public OpenPgpMetadata.Builder setCompressionAlgorithm(CompressionAlgorithm algorithm)
-
setFileName
public OpenPgpMetadata.Builder setFileName(@Nonnull String fileName)
-
setModificationDate
public OpenPgpMetadata.Builder setModificationDate(Date modificationDate)
-
setFileEncoding
public OpenPgpMetadata.Builder setFileEncoding(StreamEncoding encoding)
-
build
public OpenPgpMetadata build()
-
addVerifiedInbandSignature
public void addVerifiedInbandSignature(SignatureVerification signatureVerification)
-
addVerifiedDetachedSignature
public void addVerifiedDetachedSignature(SignatureVerification signatureVerification)
-
addInvalidInbandSignature
public void addInvalidInbandSignature(SignatureVerification signatureVerification, SignatureValidationException e)
-
addInvalidDetachedSignature
public void addInvalidDetachedSignature(SignatureVerification signatureVerification, SignatureValidationException e)
-
-