ESPSecurity0
class ESPSecurity0 : ESPCodeable
The ESPSecurity0
class conforms and implememnt methods of ESPCodeable
protocol.
This class provides methods for handling request/response data in an unsecured manner.
-
Store the session state.
Declaration
Swift
var sessionState: Security0SessionState
-
Get the next request based upon the current session, state and the response data passed to this function
Throws
Security errors.Declaration
Swift
func getNextRequestInSession(data: Data?) throws -> Data?
Parameters
data
Data that was received in the previous step.
Return Value
Data to be sent in the next step.
-
Send unsecured data.
Declaration
Swift
func encrypt(data: Data) -> Data?
Parameters
data
Data to be sent.
Return Value
Unencrypted version as communication is not secure.
-
Send unsecured data.
Declaration
Swift
func decrypt(data: Data) -> Data?
Parameters
data
Data from device.
Return Value
Data as received in the argument.