Class KeysApi

  • All Implemented Interfaces:
    Constants

    public class KeysApi
    extends AbstractApi
    See: https://docs.gitlab.com/ee/api/keys.html#get-user-by-fingerprint-of-ssh-key
    • Constructor Detail

      • KeysApi

        public KeysApi​(GitLabApi gitLabApi)
    • Method Detail

      • getUserBySSHKeyFingerprint

        public Key getUserBySSHKeyFingerprint​(java.lang.String fingerprint)
                                       throws GitLabApiException
        Parameters:
        fingerprint - The md5 hash of a ssh public key with : separating the bytes Or SHA256:$base64hash
        Returns:
        The Key which includes the user who owns the key
        Throws:
        GitLabApiException - If anything goes wrong