public static MnoHttpClient getAuthenticatedClient ( String key , String secret , String contentType ) { MnoHttpClient client = new MnoHttpClient ( contentType ) ; String authStr = key + ":" + secret ; client . basicAuthHash = "Basic " + DatatypeConverter . printBase64Binary ( authStr . getBytes ( ) ) ; return client ; }
Return a client with HTTP Basic Authentication setup