Class EncryptionResult
- java.lang.Object
-
- org.pgpainless.encryption_signing.EncryptionResult
-
public final class EncryptionResult extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncryptionResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EncryptionResult.Builderbuilder()Create a builder for the encryption result class.CompressionAlgorithmgetCompressionAlgorithm()Return the compression algorithm that was used to compress the message before encryption/signing.MultiMap<SubkeyIdentifier,org.bouncycastle.openpgp.PGPSignature>getDetachedSignatures()Return aMultiMapof key identifiers and detached signatures that were generated for the message.SymmetricKeyAlgorithmgetEncryptionAlgorithm()Return the symmetric encryption algorithm used to encrypt the message.StreamEncodinggetFileEncoding()Return the encoding format of the encrypted/signed data.StringgetFileName()Return the file name of the encrypted/signed data.DategetModificationDate()Return the modification date of the encrypted/signed file.Set<SubkeyIdentifier>getRecipients()Return the set of recipient encryption keys.SymmetricKeyAlgorithmgetSymmetricKeyAlgorithm()Deprecated.usegetEncryptionAlgorithm()instead.booleanisForYourEyesOnly()Return true, if the message is marked as for-your-eyes-only.
-
-
-
Method Detail
-
getSymmetricKeyAlgorithm
@Deprecated public SymmetricKeyAlgorithm getSymmetricKeyAlgorithm()
Deprecated.usegetEncryptionAlgorithm()instead.Return the symmetric encryption algorithm used to encrypt the message.- Returns:
- symmetric encryption algorithm
-
getEncryptionAlgorithm
public SymmetricKeyAlgorithm getEncryptionAlgorithm()
Return the symmetric encryption algorithm used to encrypt the message.- Returns:
- symmetric encryption algorithm
-
getCompressionAlgorithm
public CompressionAlgorithm getCompressionAlgorithm()
Return the compression algorithm that was used to compress the message before encryption/signing.- Returns:
- compression algorithm
-
getDetachedSignatures
public MultiMap<SubkeyIdentifier,org.bouncycastle.openpgp.PGPSignature> getDetachedSignatures()
Return aMultiMapof key identifiers and detached signatures that were generated for the message. Each key of the map represents a signing key, which has one or more detached signatures associated with it.- Returns:
- detached signatures
-
getRecipients
public Set<SubkeyIdentifier> getRecipients()
Return the set of recipient encryption keys.- Returns:
- recipients
-
getFileName
public String getFileName()
Return the file name of the encrypted/signed data.- Returns:
- filename
-
getModificationDate
public Date getModificationDate()
Return the modification date of the encrypted/signed file.- Returns:
- modification date
-
getFileEncoding
public StreamEncoding getFileEncoding()
Return the encoding format of the encrypted/signed data.- Returns:
- encoding format
-
isForYourEyesOnly
public boolean isForYourEyesOnly()
Return true, if the message is marked as for-your-eyes-only. This is typically done by setting the filename "_CONSOLE".- Returns:
- is message for your eyes only?
-
builder
public static EncryptionResult.Builder builder()
Create a builder for the encryption result class.- Returns:
- builder
-
-