ES authentication for TransportClient (open source)

Hello Team,

I would like to know is there any API for to provide authentication to ES TransportClient other than shield, which should be an open source???
Can any one provide me if any such API is available ?????