signerFor

Creates a signer for the specified privateKey. Fails if the key type does not match the signature algorithm type (EC/RSA)

Creates a signer for the specified privateKey. Fails if the key type does not match the signature algorithm type (EC/RSA) or if it has no public key attached This JVM-specific variant allows for optionally specifying a provider

See also