NamedExplicit

constructor(keyId: String, privateKey: PrivateKey, algorithm: Algorithm = when (privateKey) { is EcPrivateKey -> privateKey.curve.defaultSigningAlgorithmFullySpecified is RsaPrivateKey -> Algorithm.RS256 is MlDsaPrivateKey -> privateKey.algorithm is MlKemPrivateKey -> privateKey.algorithm })