mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-26 09:02:06 +01:00
toString() of enum options: Ensure lowercase
This commit is contained in:
parent
eddcc11c99
commit
3bc19b27ad
3 changed files with 21 additions and 3 deletions
|
@ -9,5 +9,11 @@ public enum ArmorLabel {
|
||||||
Sig,
|
Sig,
|
||||||
Key,
|
Key,
|
||||||
Cert,
|
Cert,
|
||||||
Message
|
Message,
|
||||||
|
;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return super.toString().toLowerCase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,11 @@ package sop.enums;
|
||||||
|
|
||||||
public enum EncryptAs {
|
public enum EncryptAs {
|
||||||
Binary,
|
Binary,
|
||||||
Text
|
Text,
|
||||||
|
;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return super.toString().toLowerCase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,11 @@ public enum SignAs {
|
||||||
/**
|
/**
|
||||||
* Signature is made over the message in text mode.
|
* Signature is made over the message in text mode.
|
||||||
*/
|
*/
|
||||||
Text
|
Text,
|
||||||
|
;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return super.toString().toLowerCase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue