public void authenticate ( URI aSite , String aLogin , char [ ] aPwd ) { rath . addSite ( aSite , aLogin , aPwd ) ; }
Register this root URI for authentication . Whenever a URL is requested that starts with this root the credentials given are used for HTTP AUTH . Note that currently authentication information is shared across all Resty instances . This is due to the shortcomings of the java . net authentication mechanism . This might change should Resty adopt HttpClient and is the reason why this method is not a static one .