This is the class who implement GpgAuth function. As it’s not the code of FireGPG authors, the documentation of this file is not complete.
| gpgAuth | This is the class who implement GpgAuth function. |
| Functions | |
| onLoad | This function is called when a new Firefox window is created. |
| listenerUnload | This function unloads then event listener when the window is closed. |
| login | This function gets called by the “gpg:login” event that is emitted from a gpgAuth enabled website. |
| doServerTests | This function validates the server against the users keyring by encrypting a random token to the public key on file for the given domain. |
| decryptUserToken | This function is called to decrypt the data sent by the server that is encrypted with the users public key |
| generate_random_token | This is just a random string generator. |
This function is called when a new Firefox window is created.
onLoad: function()
This function unloads then event listener when the window is closed.
listenerUnload: function( event )
This function gets called by the “gpg:login” event that is emitted from a gpgAuth enabled website.
login: function( event )
This function validates the server against the users keyring by encrypting a random token to the public key on file for the given domain.
doServerTests: function( STK_ELM, UTK_ELM, event )
This function is called to decrypt the data sent by the server that is encrypted with the users public key
decryptUserToken: function( UTK_ELM, e )
This is just a random string generator.
generate_random_token: function( e )