+Note that when adding custom key formats that care should be taken to ensure that the code isn't over broad. For example, let's say you wrote a custom key format that takes any string, of any length, and loads that as a specific Ed25519 private key. Like no matter the string that's passed to it the same Ed25519 private key is returned. That's cool if you want to do that but you should also understand that if you do that then `PublicKeyLoader::load()` isn't going throw an exception when an otherwise invalid RSA private key is loaded.
0 commit comments