private Token requestCredentials ( URL url , Method method , Token token , Map < String , String > additionalAuthParams ) throws IOException { Response r = requestInternal ( url , method , token , additionalAuthParams , null ) ; InputStream is = r . getInputStream ( ) ; String response = CSLUtils . readStreamToString ( is , UTF8 ) ; //create token for temporary credentials Map < String , String > sr = splitResponse ( response ) ; return responseToToken ( sr ) ; }
Sends a request to the server and returns a token