Просмотр исходного кода

More documentation

Added theoretical information to the documentation.
Anatolii Kosorukov 3 лет назад
Родитель
Сommit
53de90cace
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      src/oauth.erl

+ 8 - 0
src/oauth.erl

@@ -37,6 +37,14 @@
 -include_lib("public_key/include/public_key.hrl").
 
 -type signature_method() :: plaintext | hmac_sha1 | rsa_sha1.
+%% <ul>
+%%  <li>`PLAINTEXT' is a simple method for a more efficient implementation which offloads 
+%% most of the security requirements to the HTTPS layer.</li>
+%% <li>`HMAC-SHA1' offers a simple and common algorithm that is available on most platforms 
+%% but not on all legacy devices and uses a symmetric shared secret.</li>
+%% <li>`RSA-SHA1' provides enhanced security using key-pairs but is more complex and 
+%% requires key generation and a longer learning curve.</li>
+%% </ul>
 -export_type([
 	signature_method/0
 ]).