jwkPublic property

Jwk get jwkPublic

Gets the public JWK.

Throws an AskarKeyException if the JWK retrieval fails.

Implementation

Jwk get jwkPublic {
  try {
    return Jwk.fromString(
      askarKeyGetJwkPublic(localKeyHandle, algorithm).getValueOrException(),
    );
  } catch (e) {
    throw AskarKeyException('Failed to get JWK public: $e');
  }
}