requireSupports

fun requireSupports(required: Algorithm)

Validates that this key spec supports the given algorithm.

Parameters

required

The algorithm to validate

Throws

if the algorithm is not supported