public String getKeyFingerprint() {
        return this.keyFingerprint;
    }
<p>
If you used <a>CreateKeyPair</a> to create the key pair:
</p>
<ul>
<li>
<p>
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
</p>
</li>
<li>
<p>
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for
OpenSSH, starting with <a href="http://www.openssh.com/txt/release-6.8">OpenSSH 6.8</a>.
</p>
</li>
</ul>
<p>
If you used <a>ImportKeyPair</a> to provide Amazon Web Services the public key:
</p>
<ul>
<li>
<p>
For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
</p>
</li>
<li>
<p>
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for
OpenSSH, starting with <a href="http://www.openssh.com/txt/release-6.8">OpenSSH 6.8</a>.
</p>
</li>
</ul>

@return If you used <a>CreateKeyPair</a> to create the key pair:</p>
        <ul>
        <li>
        <p>
        For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
        </p>
        </li>
        <li>
        <p>
        For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for
        OpenSSH, starting with <a href="http://www.openssh.com/txt/release-6.8">OpenSSH 6.8</a>.
        </p>
        </li>
        </ul>
        <p>
        If you used <a>ImportKeyPair</a> to provide Amazon Web Services the public key:
        </p>
        <ul>
        <li>
        <p>
        For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of
        RFC4716.
        </p>
        </li>
        <li>
        <p>
        For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for
        OpenSSH, starting with <a href="http://www.openssh.com/txt/release-6.8">OpenSSH 6.8</a>.
        </p>
        </li>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/KeyPairInfo.java