mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Small documentation additions
This commit is contained in:
parent
d6aa003008
commit
902d5f2973
1 changed files with 6 additions and 2 deletions
|
@ -138,10 +138,14 @@ internal constructor(val policy: Policy, val creationTime: Date, val preferences
|
||||||
): PGPKeyPair
|
): PGPKeyPair
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define the primary key for the OpenPGP key. Example:
|
* Define the primary key for the OpenPGP key.
|
||||||
|
* The [applyToPrimaryKey] function block can be used to add UserIDs and preferences to
|
||||||
|
* the key.
|
||||||
|
* Example:
|
||||||
* ```
|
* ```
|
||||||
* setPrimaryKey(KeyType.EDDSA(EdDSACurve._Ed25519)) {
|
* setPrimaryKey(KeyType.EDDSA(EdDSACurve._Ed25519)) {
|
||||||
* addUserId("Alice <alice@example.com>")
|
* addDirectKeySignature(...)
|
||||||
|
* addUserId("Alice <alice@example.com>") // first user-id is primary
|
||||||
* addUserId("Bob <bob@example.com>")
|
* addUserId("Bob <bob@example.com>")
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
|
Loading…
Reference in a new issue