Move builder() method above Builder class

This commit is contained in:
Paul Schaub 2021-08-15 15:39:00 +02:00
parent 54a4625fed
commit 8539157405
1 changed files with 9 additions and 4 deletions

View File

@ -137,14 +137,19 @@ public final class EncryptionResult {
* *
* @return is message for your eyes only? * @return is message for your eyes only?
*/ */
public static Builder builder() {
return new Builder();
}
public boolean isForYourEyesOnly() { public boolean isForYourEyesOnly() {
return PGPLiteralData.CONSOLE.equals(getFileName()); return PGPLiteralData.CONSOLE.equals(getFileName());
} }
/**
* Create a builder for the encryption result class.
*
* @return builder
*/
public static Builder builder() {
return new Builder();
}
public static class Builder { public static class Builder {
private SymmetricKeyAlgorithm encryptionAlgorithm; private SymmetricKeyAlgorithm encryptionAlgorithm;