public static Token < EsTokenIdentifier > obtainToken ( RestClient client , User user ) { EsToken esToken = obtainEsToken ( client , user ) ; return EsTokenIdentifier . createTokenFrom ( esToken ) ; }
Obtain and return an authentication token for the current user .