jwkSecret property

Jwk get jwkSecret

Gets the secret JWK.

Throws an AskarKeyException if the JWK retrieval fails.

Implementation

Jwk get jwkSecret {
  try {
    return Jwk.fromString(
      utf8.decode(askarKeyGetJwkSecret(localKeyHandle).getValueOrException()),
    );
  } catch (e) {
    throw AskarKeyException('Failed to get JWK secret: $e');
  }
}