class::sys::Auth

class sys::Auth
  : public api::WorkObject

This class is used to authenticate the calling thread to the OS and gain root privileges.

This is similar to using sudo.

Caller->System: Sends 128-bit Random Number
Note right of System: Appends 128-bits
System->Caller: 256-bit Random Number
Caller->System: SHA256(Secret Key, Random Number)
Note right of System: Validates token
System->Caller: SHA256(Random Number, Secret Key)

Summary

Auth()

~Auth()

AuthToken finish(

const AuthToken & token
)

bool is_valid() const

AuthToken start(

const AuthToken & token
)

Members

Auth()

~Auth()

AuthToken finish(

const AuthToken & token
)


bool is_valid() const

AuthToken start(

const AuthToken & token
)


X

Thanks for Coming!

Subscribe to news and updates