Move builder() method above Builder class
This commit is contained in:
parent
54a4625fed
commit
8539157405
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue