class PublicKeyProvider {

    public PublicKey get() throws MissingOrInvalidKeyException {
        return reader.fromPEM(jwtConfiguration.getJwtPublicKeyPem())
                .orElseThrow(MissingOrInvalidKeyException::new);
    }

    @Inject @VisibleForTesting  PublicKeyProvider(JwtConfiguration jwtConfiguration, PublicKeyReader reader);

}