To sign a key: DirectKeySignature secretKeyFile secretKeyPass publicKeyFile(key to be signed) NotationName NotationValue.
To display a NotationData packet from a publicKey previously signed: DirectKeySignature signedPublicKeyFile.
Note
this example will silently overwrite files, nor does it pay any attention to the specification of "_CONSOLE" in the filename. It also expects that a single pass phrase will have been used.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| private static byte[] | signPublicKey(PGPSecretKey secretKey, String secretKeyPass, PGPPublicKey keyToBeSigned, String notationName, String notationValue)
|
| DirectKeySignature | back to summary |
|---|---|
| public DirectKeySignature() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |
| signPublicKey | back to summary |
|---|---|
| private static byte[] signPublicKey(PGPSecretKey secretKey, String secretKeyPass, PGPPublicKey keyToBeSigned, String notationName, String notationValue) throws Exception | |