Add getPrivateKey method