mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-14 20:59:39 +02:00
make checkstyle happy
This commit is contained in:
parent
8df9d12e7e
commit
ec653150f8
1 changed files with 9 additions and 3 deletions
|
@ -40,21 +40,27 @@ public class KeyInfo {
|
||||||
this.secretKey = null;
|
this.secretKey = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCurveName() { return getCurveName(publicKey); }
|
public String getCurveName() {
|
||||||
|
return getCurveName(publicKey);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns indication that a contained secret key is encrypted.
|
* Returns indication that a contained secret key is encrypted.
|
||||||
*
|
*
|
||||||
* @return true if secret key is encrypted, false if secret key is not encrypted or there is public key only.
|
* @return true if secret key is encrypted, false if secret key is not encrypted or there is public key only.
|
||||||
*/
|
*/
|
||||||
public boolean isEncrypted() { return secretKey != null && isEncrypted(secretKey); }
|
public boolean isEncrypted() {
|
||||||
|
return secretKey != null && isEncrypted(secretKey);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns indication that a contained secret key is not encrypted.
|
* Returns indication that a contained secret key is not encrypted.
|
||||||
*
|
*
|
||||||
* @return true if secret key is not encrypted or there is public key only, false if secret key is encrypted.
|
* @return true if secret key is not encrypted or there is public key only, false if secret key is encrypted.
|
||||||
*/
|
*/
|
||||||
public boolean isDecrypted() { return secretKey == null || isDecrypted(secretKey); }
|
public boolean isDecrypted() {
|
||||||
|
return secretKey == null || isDecrypted(secretKey);
|
||||||
|
}
|
||||||
|
|
||||||
public static String getCurveName(PGPPublicKey publicKey) {
|
public static String getCurveName(PGPPublicKey publicKey) {
|
||||||
PublicKeyAlgorithm algorithm = PublicKeyAlgorithm.fromId(publicKey.getAlgorithm());
|
PublicKeyAlgorithm algorithm = PublicKeyAlgorithm.fromId(publicKey.getAlgorithm());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue