mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-28 15:50:37 +00:00
Allow the fetching of a user's verified key list without requiring to have an OAuth user scope (which implies user's profile READ/WRITE permissions). This would relax the requirements of GitHub OAuth scope when fetching public information such as their SSH public keys.
14 lines
228 B
Java
14 lines
228 B
Java
package org.kohsuke.github;
|
|
|
|
public class GHVerifiedKey extends GHKey {
|
|
|
|
public GHVerifiedKey() {
|
|
this.verified = true;
|
|
}
|
|
|
|
@Override
|
|
public String getTitle() {
|
|
return (title == null ? "key-" + id : title);
|
|
}
|
|
}
|