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 Details

    • KeysApi

      public KeysApi(GitLabApi gitLabApi)
  • Method Details

    • getUserBySSHKeyFingerprint

      public Key getUserBySSHKeyFingerprint(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