\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(  address,   password,   inputFormat = DataFormat::ASCII) : mixed||string|int

Sets an access password

Parameters

address

Network device address

password

An access password

inputFormat

Input data format (ASCII or HEX)

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException
\App\IqrfNetModule\Models\UnsupportedInputFormatException
\App\IqrfNetModule\Models\UserErrorException

Returns

mixed||string|int —

API request and response

setUserKey()

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

Sets an user key

Parameters

address

Network device address

password

An user key

inputFormat

Input data format (ASCII or HEX)

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException
\App\IqrfNetModule\Models\UnsupportedInputFormatException
\App\IqrfNetModule\Models\UserErrorException

Returns

mixed||string|int —

API request and response