55import java .util .ArrayList ;
66import java .util .Collections ;
77import java .util .List ;
8+ import java .util .Map ;
89
910// TODO: Auto-generated Javadoc
1011/**
1112 * Class that wraps the list of GitHub's IP addresses.
1213 *
1314 * @author Paulo Miguel Almeida
1415 * @see GitHub#getMeta() GitHub#getMeta()
15- * @see <a href="https://developer.github.com/v3/meta/#meta">Get Meta</a>
16+ * @see <a href="https://docs.github.com/en/rest/meta/meta?apiVersion=2022-11-28#get-github-meta-information">Get
17+ * Meta</a>
1618 */
1719public class GHMeta {
1820
@@ -24,6 +26,10 @@ public GHMeta() {
2426
2527 @ JsonProperty ("verifiable_password_authentication" )
2628 private boolean verifiablePasswordAuthentication ;
29+ @ JsonProperty ("ssh_key_fingerprints" )
30+ private Map <String , String > sshKeyFingerprints ;
31+ @ JsonProperty ("ssh_keys" )
32+ private List <String > sshKeys ;
2733 private List <String > hooks ;
2834 private List <String > git ;
2935 private List <String > web ;
@@ -43,6 +49,24 @@ public boolean isVerifiablePasswordAuthentication() {
4349 return verifiablePasswordAuthentication ;
4450 }
4551
52+ /**
53+ * Gets ssh key fingerprints.
54+ *
55+ * @return the ssh key fingerprints
56+ */
57+ public Map <String , String > getSshKeyFingerprints () {
58+ return Collections .unmodifiableMap (sshKeyFingerprints );
59+ }
60+
61+ /**
62+ * Gets ssh keys.
63+ *
64+ * @return the ssh keys
65+ */
66+ public List <String > getSshKeys () {
67+ return Collections .unmodifiableList (sshKeys );
68+ }
69+
4670 /**
4771 * Gets hooks.
4872 *
0 commit comments