diff options
author | Jerry Kuch <jerryk@vmware.com> | 2010-11-17 16:39:50 +0000 |
---|---|---|
committer | Jerry Kuch <jerryk@vmware.com> | 2010-11-17 16:39:50 +0000 |
commit | 41b34448df550030599ca13c2c9a2afb154a5c74 (patch) | |
tree | afc02dc02653fe3c03991e748c66b297523b453d /src/rabbit_access_control.erl | |
parent | d35ac1631bb967aa3b52f1bb3586364bd9dfb6eb (diff) | |
parent | 871857cdf7efc48781aab28cea6056180173ea54 (diff) | |
download | rabbitmq-server-41b34448df550030599ca13c2c9a2afb154a5c74.tar.gz |
Merge from default.
Diffstat (limited to 'src/rabbit_access_control.erl')
-rw-r--r-- | src/rabbit_access_control.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rabbit_access_control.erl b/src/rabbit_access_control.erl index 45df6cfb..1826347d 100644 --- a/src/rabbit_access_control.erl +++ b/src/rabbit_access_control.erl @@ -37,7 +37,7 @@ check_vhost_access/2, check_resource_access/3]). -export([add_user/2, delete_user/1, change_password/2, set_admin/1, clear_admin/1, list_users/0, lookup_user/1]). --export([change_password_hash/2]). +-export([change_password_hash/2, hash_password/1]). -export([add_vhost/1, delete_vhost/1, vhost_exists/1, list_vhosts/0]). -export([set_permissions/5, clear_permissions/2, list_permissions/0, list_vhost_permissions/1, list_user_permissions/1, @@ -47,7 +47,7 @@ -ifdef(use_specs). --export_type([username/0, password/0]). +-export_type([username/0, password/0, password_hash/0]). -type(permission_atom() :: 'configure' | 'read' | 'write'). -type(username() :: binary()). @@ -73,9 +73,10 @@ -spec(delete_user/1 :: (username()) -> 'ok'). -spec(change_password/2 :: (username(), password()) -> 'ok'). -spec(change_password_hash/2 :: (username(), password_hash()) -> 'ok'). +-spec(hash_password/1 :: (password()) -> password_hash()). -spec(set_admin/1 :: (username()) -> 'ok'). -spec(clear_admin/1 :: (username()) -> 'ok'). --spec(list_users/0 :: () -> [username()]). +-spec(list_users/0 :: () -> [{username(), boolean()}]). -spec(lookup_user/1 :: (username()) -> rabbit_types:ok(rabbit_types:user()) | rabbit_types:error('not_found')). |