How to get jwt_secrets when having consumer_id

Hello,

I am using Kong v 1.0.0rc3.
I am trying to modify an existing custom plugin to get the jwt object information from consumer id.

I read that in kong version 1.x we have to use kong.db.jwt_secrets.
Is it possible to get the jwt_secrets when I have the consumer_id?

Thanks