Skip to content

Commit 02d12bc

Browse files
committed
Document PreferredKeyServer
1 parent 5460f78 commit 02d12bc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pg/src/main/java/org/bouncycastle/bcpg/sig/PreferredKeyServer.java

+16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
import org.bouncycastle.util.Arrays;
66
import org.bouncycastle.util.Strings;
77

8+
/**
9+
* Signature Subpacket containing the URI of the users preferred key server.
10+
* This is a URI of a key server that the key holder prefers be used for updates.
11+
* Note that keys with multiple User IDs can have a preferred key server for each User ID.
12+
* Note also that since this is a URI, the key server can actually be a copy of the key
13+
* retrieved by ftp, http, finger, etc.
14+
*
15+
* @see <a href="https://datatracker.ietf.org/doc/html/rfc4880#section-5.2.3.18">
16+
* RFC4880 - Preferred Key Server</a>
17+
* @see <a href="https://www.ietf.org/archive/id/draft-ietf-openpgp-crypto-refresh-13.html#name-preferred-key-server">
18+
* C-R - Preferred Key Server</a>
19+
*/
820
public class PreferredKeyServer
921
extends SignatureSubpacket
1022
{
@@ -18,6 +30,10 @@ public PreferredKeyServer(boolean critical, String uri)
1830
this(critical, false, Strings.toUTF8ByteArray(uri));
1931
}
2032

33+
/**
34+
* Return the URI of the users preferred key server.
35+
* @return key server uri
36+
*/
2137
public String getURI()
2238
{
2339
return Strings.fromUTF8ByteArray(data);

0 commit comments

Comments
 (0)