WSSE Authorization

47
March 20, 2019, at 02:30 AM

first time in my life i stuck with problem which i can't resolve. I spent one day to try and can't understand whats wrong : On server i have X-WSSE auth system :

I readed a lot of data about this system , but still can't complete this situation. For string which we insert in header we need 3 items -nonce -createdAt -digestPassword

Well to generate nonce i used System.currentTime(); with some modification. Anyway its just unique long id.

Which correct steps to generate other fields (nonce/createdAt,digestPassword) ?

For nonce i tried this steps :

nonce = base64.encodeToString(System.currentTime())
nonce = base64.encodeToString(md5(System.currentTime())
nonce = base64.encodeToString(md5(System.currentTime()).substring(0,16) (somewhere i found that nonce should be first 16 letters)
also nonce = base64.encodeToString(System.currentTime()).substring(0,16)

for digest(digestPassword) i found this alhoritm

digest = nonce + createdAt + password
md = MessageDigest.getInstance("SHA1")
digest = Base64.encodeToString(md(digest.getBytes("UTF-8))

i tried a lot of steps to switch variables . But have no luck. Maybe someone can tell me how to correct build UsermodelToken for X-WSSE auth system ? Every time i received 403 error from server - User not authorized

main post where i found some info was : here

READ ALSO
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18611 (GLThread 17523), pid 13022 [on hold]

Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18611 (GLThread 17523), pid 13022 [on hold]

I am facing weird crash that is happening only in Nokia Pie device

25
Android net::ERR_CACHE_MISS on debug output

Android net::ERR_CACHE_MISS on debug output

I realise that this question has been asked (and solved) here before, however the most frequent and obvious solution, which is to place

46
Adding reference to Java.Util in .NET Core 2.1 project

Adding reference to Java.Util in .NET Core 2.1 project

I'm writing unit tests to xamarin android projectI need class IEnumeration, which belongs to Java

44
Can't build IoTivity Base Android API

Can't build IoTivity Base Android API

I am following this tutorial to build the IoTivity Base Android API:

46