Files
github-api/jacoco/org.kohsuke.github/GHKey.java.html
2020-04-01 15:08:20 -07:00

82 lines
3.0 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHKey.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> &gt; <a href="index.source.html" class="el_package">org.kohsuke.github</a> &gt; <span class="el_source">GHKey.java</span></div><h1>GHKey.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* SSH public key.
*
* @author Kohsuke Kawaguchi
*/
@SuppressFBWarnings(value = &quot;UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD&quot;, justification = &quot;JSON API&quot;)
<span class="fc" id="L12">public class GHKey {</span>
/* package almost final */ GitHub root;
protected String url, key, title;
protected boolean verified;
protected int id;
/**
* Gets id.
*
* @return the id
*/
public int getId() {
<span class="fc" id="L25"> return id;</span>
}
/**
* Gets key.
*
* @return the key
*/
public String getKey() {
<span class="fc" id="L34"> return key;</span>
}
/**
* Gets title.
*
* @return the title
*/
public String getTitle() {
<span class="nc" id="L43"> return title;</span>
}
/**
* Something like &quot;https://api.github.com/user/keys/73593&quot;
*
* @return the url
*/
public String getUrl() {
<span class="nc" id="L52"> return url;</span>
}
/**
* Gets root.
*
* @return the root
*/
public GitHub getRoot() {
<span class="nc" id="L61"> return root;</span>
}
/**
* Is verified boolean.
*
* @return the boolean
*/
public boolean isVerified() {
<span class="nc" id="L70"> return verified;</span>
}
GHKey wrap(GitHub root) {
<span class="nc" id="L74"> this.root = root;</span>
<span class="nc" id="L75"> return this;</span>
}
public String toString() {
<span class="nc" id="L79"> return new ToStringBuilder(this).append(&quot;title&quot;, title).append(&quot;id&quot;, id).append(&quot;key&quot;, key).toString();</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html>