Re: 401 Unauthorized Exception restful webservice Linux OS, Tomcat Server

2018-05-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Prasanna, On 5/26/18 2:09 PM, Prasanna Pati wrote: > We are trying to access the Lithium Rest Api (its a https site) > through Spring Rest Template as below > > `String plainCreds = lswUserName + ":" + lswPassword; > > byte[] plainCredsBytes =

401 Unauthorized Exception restful webservice Linux OS, Tomcat Server

2018-05-26 Thread Prasanna Pati
We are trying to access the Lithium Rest Api (its a https site) through Spring Rest Template as below `String plainCreds = lswUserName + ":" + lswPassword; byte[] plainCredsBytes = plainCreds.getBytes(); byte[] base64CredsBytes = Base64.encodeBase64(plainCredsBytes); String base64Creds