public static Signature createSigner(PrivateKey key) {
        return createSigner(key, getSignatureAlgorithm(key));
    }
Returns a signature instance which computes a hash of its content, before signing with the given private key.
security-utils/src/main/java/com/yahoo/security/SignatureUtils.java