File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
pg/src/main/java/org/bouncycastle/bcpg/sig Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 5
5
import org .bouncycastle .util .Arrays ;
6
6
import org .bouncycastle .util .Strings ;
7
7
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
+ */
8
20
public class PreferredKeyServer
9
21
extends SignatureSubpacket
10
22
{
@@ -18,6 +30,10 @@ public PreferredKeyServer(boolean critical, String uri)
18
30
this (critical , false , Strings .toUTF8ByteArray (uri ));
19
31
}
20
32
33
+ /**
34
+ * Return the URI of the users preferred key server.
35
+ * @return key server uri
36
+ */
21
37
public String getURI ()
22
38
{
23
39
return Strings .fromUTF8ByteArray (data );
You can’t perform that action at this time.
0 commit comments