\App\IqrfNetModule\ModelsSecurityManager

Tool for setting an access password and an user key

Summary

Methods
Properties
Constants
__construct()
setAccessPassword()
setUserKey()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\IqrfNetModule\Models\ApiRequest  request, \App\IqrfNetModule\Models\WebSocketClient  wsClient) : 

Constructor

Parameters

\App\IqrfNetModule\Models\ApiRequest request

JSON API request

\App\IqrfNetModule\Models\WebSocketClient wsClient

WebSocket client

Returns

setAccessPassword()

setAccessPassword(  password,   inputFormat = DataFormat::ASCII) : mixed||string|int

Set an access password

Parameters

password

An access password

inputFormat

Input data format (ASCII or HEX)

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\UnsupportedInputFormatException
\App\IqrfNetModule\Models\JsonException

Returns

mixed||string|int —

DPA request and response

setUserKey()

setUserKey(  password,   inputFormat = DataFormat::ASCII) : mixed||string|int

Set an user key

Parameters

password

An user key

inputFormat

Input data format (ASCII or HEX)

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\UnsupportedInputFormatException
\App\IqrfNetModule\Models\JsonException

Returns

mixed||string|int —

DPA request and response