FMLiveSwitchProxyCredentialsCache Class Reference

Proxy credentials cache. More...

Instance Methods

(FMLiveSwitchManagedConcurrentDictionary< NSString *, FMLiveSwitchProxyCredentials * > *) - cache
 Gets the underlying cache. More...
 
(FMLiveSwitchProxyCredentials *) - defaultCredentials
 Gets the default credentials. More...
 
(FMLiveSwitchProxyCredentials *) - getCredentialsWithProxyIPAddress:
 Gets the proxy credentials for the given proxy IP address. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchProxyCredentialsCache class. More...
 
(void) - setCredentialsWithProxyIPAddress:proxyCredentials:
 Sets the proxy credentials for the given proxy IP address. More...
 
(void) - setCredentialsWithProxyIPAddresses:proxyCredentials:
 Sets the proxy credentials for the given proxy IP addresss. More...
 
(void) - setDefaultCredentials:
 Sets the default credentials. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 

Class Methods

(FMLiveSwitchProxyCredentialsCache *) + fromJsonWithInstanceJson:
 Deserializes an instance from JSON. More...
 
(FMLiveSwitchProxyCredentialsCache *) + proxyCredentialsCache
 Initializes a new instance of the FMLiveSwitchProxyCredentialsCache class. More...
 
(NSString *) + toJsonWithInstance:
 Serializes an instance to JSON. More...
 

Detailed Description

Proxy credentials cache.

Method Documentation

◆ cache

◆ defaultCredentials

- (FMLiveSwitchProxyCredentials*) defaultCredentials

Gets the default credentials.

◆ fromJsonWithInstanceJson:

+ (FMLiveSwitchProxyCredentialsCache*) fromJsonWithInstanceJson: (NSString *)  instanceJson

Deserializes an instance from JSON.

Parameters
instanceJsonThe serialized JSON.
Returns
The instance.

◆ getCredentialsWithProxyIPAddress:

- (FMLiveSwitchProxyCredentials*) getCredentialsWithProxyIPAddress: (NSString *)  proxyIPAddress

Gets the proxy credentials for the given proxy IP address.

Parameters
proxyIPAddressThe proxy IP address.
Returns
The proxy credentials, if they exist, or null.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchProxyCredentialsCache class.

◆ proxyCredentialsCache

+ (FMLiveSwitchProxyCredentialsCache*) proxyCredentialsCache

Initializes a new instance of the FMLiveSwitchProxyCredentialsCache class.

◆ setCredentialsWithProxyIPAddress:proxyCredentials:

- (void) setCredentialsWithProxyIPAddress: (NSString *)  proxyIPAddress
proxyCredentials: (FMLiveSwitchProxyCredentials *)  proxyCredentials 

Sets the proxy credentials for the given proxy IP address.

Parameters
proxyIPAddressThe proxy IP address.
proxyCredentialsThe proxy credentials.

◆ setCredentialsWithProxyIPAddresses:proxyCredentials:

- (void) setCredentialsWithProxyIPAddresses: (NSMutableArray *)  proxyIPAddresses
proxyCredentials: (FMLiveSwitchProxyCredentials *)  proxyCredentials 

Sets the proxy credentials for the given proxy IP addresss.

Parameters
proxyIPAddressesThe proxy IP addresses.
proxyCredentialsThe proxy credentials.

◆ setDefaultCredentials:

- (void) setDefaultCredentials: (FMLiveSwitchProxyCredentials *)  value

Sets the default credentials.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

Returns
The serialized JSON.

◆ toJsonWithInstance:

+ (NSString*) toJsonWithInstance: (FMLiveSwitchProxyCredentialsCache *)  instance

Serializes an instance to JSON.

Parameters
instanceThe instance.
Returns
The serialized JSON.