gpgAuth

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.

Summary
gpgAuthThis is the class who implement GpgAuth function.
Functions
onLoadThis function is called when a new Firefox window is created.
listenerUnloadThis function unloads then event listener when the window is closed.
loginThis function gets called by the “gpg:login” event that is emitted from a gpgAuth enabled website.
doServerTestsThis function validates the server against the users keyring by encrypting a random token to the public key on file for the given domain.
decryptUserTokenThis function is called to decrypt the data sent by the server that is encrypted with the users public key
generate_random_tokenThis is just a random string generator.

Functions

onLoad

onLoad: function()

This function is called when a new Firefox window is created.  It inititializes the strings, sets the GPG preferences and addes the gpg_auth:login event listener.

listenerUnload

listenerUnload: function(event)

This function unloads then event listener when the window is closed.

login

login: function(event)

This function gets called by the “gpg:login” event that is emitted from a gpgAuth enabled website.  Events not caught by the webpage itself are bubbled up to extensions in Firefox.

doServerTests

doServerTests: function(STK_ELM,
UTK_ELM,
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.

decryptUserToken

decryptUserToken: function(UTK_ELM,
e)

This function is called to decrypt the data sent by the server that is encrypted with the users public key

generate_random_token

generate_random_token: function(e)

This is just a random string generator.  It generates a random string that gets encrypted with the servers Public Key and sent to the server for decryption.

onLoad: function()
This function is called when a new Firefox window is created.
listenerUnload: function(event)
This function unloads then event listener when the window is closed.
login: function(event)
This function gets called by the “gpg:login” event that is emitted from a gpgAuth enabled website.
doServerTests: function(STK_ELM,
UTK_ELM,
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.
decryptUserToken: function(UTK_ELM,
e)
This function is called to decrypt the data sent by the server that is encrypted with the users public key
generate_random_token: function(e)
This is just a random string generator.
Close