SIFWorks ADK 2.0
GetInstance Method (password, zone)
NamespacesEdustructures.SifWorksSifEncryptionGetInstance(Password, IZone)

[This is preliminary documentation and is subject to change.]

Creates an instance of SIFEncryption that can decrypt the password field automatically, using settings defined in the agent's properties.
Declaration Syntax
C#Visual BasicVisual C++
public static SifEncryption GetInstance(
	Password password,
	IZone zone
)
Public Shared Function GetInstance ( _
	password As Password, _
	zone As IZone _
) As SifEncryption
public:
static SifEncryption^ GetInstance (
	Password^ password, 
	IZone^ zone
)
Parameters
password (Password)
The password object that needs to be decrypted
zone (IZone)
The zone that is in scope for the current message
Return Value
Remarks

This method searches the agent properties in effect for the zone and looks for one that matches the key defined in the Password object. If it finds one, it returns an instance of SIFEncryption that has been initialized with the proper key and encryption algorithm for the field.

This method looks for a property named "adk.encryption.keys.[key]" where [key] is the name of the key field defined by the Password field.

Assembly: Edustructures.SifWorks.Adk (Module: Edustructures.SifWorks.Adk) Version: 2.0.0.10