C# Class Unity.Platform.IPhone.IPhoneSecurity

Inheritance: Unity.Core.Security.AbstractSecurity
Mostra file Open project: Appverse/appverse-mobile Class Usage Examples

Private Properties

Property Type Description
CanEvaluatePolicy bool
CheckPath bool
CheckPathAccess bool
Decrypt string
Encrypt string
EvaluatePolicy void
HandleLAContextReplyHandler void
SecRecordToKeyPair Unity.Core.Security.KeyPair

Public Methods

Method Description
GetConfigFileBinaryData ( ) : byte[]

Method overrided, to use NSData to get stream from file resource inside application.

GetStoredKeyValuePair ( KeyPair keyname ) : void
GetStoredKeyValuePairs ( KeyPair keynames ) : void
IPhoneSecurity ( ) : System
IsDeviceModified ( ) : bool

Checks if the device has been modified

RemoveStoredKeyValuePair ( string keyname ) : void
RemoveStoredKeyValuePairs ( string keynames ) : void
StartLocalAuthenticationWithTouchID ( string reason ) : void

Starts local authentication operation displaying Touch ID screen.

StoreKeyValuePair ( KeyPair keypair ) : void
StoreKeyValuePairs ( KeyPair keypairs ) : void

Private Methods

Method Description
CanEvaluatePolicy ( ) : bool
CheckPath ( string sPath ) : bool

Checks the existence of the specified paths.

CheckPathAccess ( string sPath ) : bool

Checks if we have full access over a directory

Decrypt ( string encryptedText ) : string
Encrypt ( string plainText ) : string
EvaluatePolicy ( string reason ) : void
HandleLAContextReplyHandler ( bool success, NSError error ) : void
SecRecordToKeyPair ( SecRecord entry ) : KeyPair

Method Details

GetConfigFileBinaryData() public method

Method overrided, to use NSData to get stream from file resource inside application.
public GetConfigFileBinaryData ( ) : byte[]
return byte[]

GetStoredKeyValuePair() public method

public GetStoredKeyValuePair ( KeyPair keyname ) : void
keyname Unity.Core.Security.KeyPair
return void

GetStoredKeyValuePairs() public method

public GetStoredKeyValuePairs ( KeyPair keynames ) : void
keynames Unity.Core.Security.KeyPair
return void

IPhoneSecurity() public method

public IPhoneSecurity ( ) : System
return System

IsDeviceModified() public method

Checks if the device has been modified
public IsDeviceModified ( ) : bool
return bool

RemoveStoredKeyValuePair() public method

public RemoveStoredKeyValuePair ( string keyname ) : void
keyname string
return void

RemoveStoredKeyValuePairs() public method

public RemoveStoredKeyValuePairs ( string keynames ) : void
keynames string
return void

StartLocalAuthenticationWithTouchID() public method

Starts local authentication operation displaying Touch ID screen.
public StartLocalAuthenticationWithTouchID ( string reason ) : void
reason string A reason to explain why authentication is needed. This helps to build trust with the user.
return void

StoreKeyValuePair() public method

public StoreKeyValuePair ( KeyPair keypair ) : void
keypair Unity.Core.Security.KeyPair
return void

StoreKeyValuePairs() public method

public StoreKeyValuePairs ( KeyPair keypairs ) : void
keypairs Unity.Core.Security.KeyPair
return void