fm.liveswitch.ProxyCredentialsCache Class Reference

Proxy credentials cache. More...

Public Member Functions

fm.liveswitch.ManagedConcurrentDictionary< String, fm.liveswitch.ProxyCredentialsgetCache ()
 Gets the underlying cache. More...
 
fm.liveswitch.ProxyCredentials getCredentials (String proxyIPAddress)
 Gets the proxy credentials for the given proxy IP address. More...
 
fm.liveswitch.ProxyCredentials getDefaultCredentials ()
 Gets the default credentials. More...
 
 ProxyCredentialsCache ()
 Initializes a new instance of the fm.liveswitch.ProxyCredentialsCache class. More...
 
void setCredentials (String proxyIPAddress, fm.liveswitch.ProxyCredentials proxyCredentials)
 Sets the proxy credentials for the given proxy IP address. More...
 
void setCredentials (String[] proxyIPAddresses, fm.liveswitch.ProxyCredentials proxyCredentials)
 Sets the proxy credentials for the given proxy IP addresss. More...
 
void setDefaultCredentials (fm.liveswitch.ProxyCredentials value)
 Sets the default credentials. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 

Static Public Member Functions

static fm.liveswitch.ProxyCredentialsCache fromJson (String instanceJson)
 Deserializes an instance from JSON. More...
 
static String toJson (fm.liveswitch.ProxyCredentialsCache instance)
 Serializes an instance to JSON. More...
 

Detailed Description

Proxy credentials cache.

Constructor & Destructor Documentation

◆ ProxyCredentialsCache()

fm.liveswitch.ProxyCredentialsCache.ProxyCredentialsCache ( )

Initializes a new instance of the fm.liveswitch.ProxyCredentialsCache class.

Member Function Documentation

◆ fromJson()

static fm.liveswitch.ProxyCredentialsCache fm.liveswitch.ProxyCredentialsCache.fromJson ( String  instanceJson)
static

Deserializes an instance from JSON.

Parameters
instanceJsonThe serialized JSON.
Returns
The instance.

◆ getCache()

fm.liveswitch.ManagedConcurrentDictionary<String,fm.liveswitch.ProxyCredentials> fm.liveswitch.ProxyCredentialsCache.getCache ( )

Gets the underlying cache.

◆ getCredentials()

fm.liveswitch.ProxyCredentials fm.liveswitch.ProxyCredentialsCache.getCredentials ( String  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
.

◆ getDefaultCredentials()

fm.liveswitch.ProxyCredentials fm.liveswitch.ProxyCredentialsCache.getDefaultCredentials ( )

Gets the default credentials.

◆ setCredentials() [1/2]

void fm.liveswitch.ProxyCredentialsCache.setCredentials ( String  proxyIPAddress,
fm.liveswitch.ProxyCredentials  proxyCredentials 
)

Sets the proxy credentials for the given proxy IP address.

Parameters
proxyIPAddressThe proxy IP address.
proxyCredentialsThe proxy credentials.

◆ setCredentials() [2/2]

void fm.liveswitch.ProxyCredentialsCache.setCredentials ( String[]  proxyIPAddresses,
fm.liveswitch.ProxyCredentials  proxyCredentials 
)

Sets the proxy credentials for the given proxy IP addresss.

Parameters
proxyIPAddressesThe proxy IP addresses.
proxyCredentialsThe proxy credentials.

◆ setDefaultCredentials()

void fm.liveswitch.ProxyCredentialsCache.setDefaultCredentials ( fm.liveswitch.ProxyCredentials  value)

Sets the default credentials.

◆ toJson() [1/2]

String fm.liveswitch.ProxyCredentialsCache.toJson ( )

Serializes this instance to JSON.

Returns
The serialized JSON.

◆ toJson() [2/2]

static String fm.liveswitch.ProxyCredentialsCache.toJson ( fm.liveswitch.ProxyCredentialsCache  instance)
static

Serializes an instance to JSON.

Parameters
instanceThe instance.
Returns
The serialized JSON.