Monarch Database API - v1.0.0
Preparing search index...
AccessControl
Interface AccessControl
interface
AccessControl
{
authenticate
(
username
:
string
,
password
:
string
,
)
:
Promise
<
SecurityContext
|
null
>
;
authorize
(
context
:
SecurityContext
,
permission
:
Permission
,
resource
?:
string
,
)
:
boolean
;
decrypt
(
encryptedData
:
string
)
:
Promise
<
any
>
;
encrypt
(
data
:
any
)
:
Promise
<
string
>
;
hashPassword
(
password
:
string
)
:
Promise
<
string
>
;
verifyPassword
(
password
:
string
,
hash
:
string
)
:
Promise
<
boolean
>
;
}
Implemented by
SecurityManager
Index
Methods
authenticate
authorize
decrypt
encrypt
hash
Password
verify
Password
Methods
authenticate
authenticate
(
username
:
string
,
password
:
string
,
)
:
Promise
<
SecurityContext
|
null
>
Parameters
username
:
string
password
:
string
Returns
Promise
<
SecurityContext
|
null
>
authorize
authorize
(
context
:
SecurityContext
,
permission
:
Permission
,
resource
?:
string
,
)
:
boolean
Parameters
context
:
SecurityContext
permission
:
Permission
Optional
resource
:
string
Returns
boolean
decrypt
decrypt
(
encryptedData
:
string
)
:
Promise
<
any
>
Parameters
encryptedData
:
string
Returns
Promise
<
any
>
encrypt
encrypt
(
data
:
any
)
:
Promise
<
string
>
Parameters
data
:
any
Returns
Promise
<
string
>
hash
Password
hashPassword
(
password
:
string
)
:
Promise
<
string
>
Parameters
password
:
string
Returns
Promise
<
string
>
verify
Password
verifyPassword
(
password
:
string
,
hash
:
string
)
:
Promise
<
boolean
>
Parameters
password
:
string
hash
:
string
Returns
Promise
<
boolean
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
authenticate
authorize
decrypt
encrypt
hash
Password
verify
Password
Monarch Database API - v1.0.0
Loading...