CipherObject allows direct sealing (encrypting) and unsealing (decryption) of regular objects (POCOs). Behind the scenes the entire key management, encryption and tamper protection systems are automatically engaged
More...
|
static T | Seal< T > (T plainObject, string securityPartition=Default.PartitionId, string asRole=Default.RoleId) |
| Seal an object's secured properties. The specific properties that are sealed are based upon which properties have been decorated with the Secure attribute. The resulting encrypted object can then be sent to any storage or transport safely. Sealing involves key management, encryption and tamper protection.
At present only the first immediate properties of the object will be secured i.e. object.prop1 versus object.prop1.prop2 More...
|
|
static T | Unseal< T > (T encryptedObject, string securityPartition=Default.PartitionId, string asRole=Default.RoleId) |
| Unseals an object's secured properties. The specific properties that are unsealed are based upon which properties have been decorated with the Secure attribute. Unsealing involves key management, decryption and tamper protection checks. More...
|
|
CipherObject allows direct sealing (encrypting) and unsealing (decryption) of regular objects (POCOs). Behind the scenes the entire key management, encryption and tamper protection systems are automatically engaged
static T Crypteron.CipherObject.Protector.Seal< T > |
( |
T |
plainObject, |
|
|
string |
securityPartition = Default.PartitionId , |
|
|
string |
asRole = Default.RoleId |
|
) |
| |
|
static |
Seal an object's secured properties. The specific properties that are sealed are based upon which properties have been decorated with the Secure attribute. The resulting encrypted object can then be sent to any storage or transport safely. Sealing involves key management, encryption and tamper protection.
At present only the first immediate properties of the object will be secured i.e. object.prop1 versus object.prop1.prop2
- Template Parameters
-
- Parameters
-
plainObject | A standard object (POCO) with properties in cleartext |
securityPartition | Optional argument specifying the security partition this object should be sealed for. If not specified, the default security partition is used. |
asRole | Optional argument specifying the role that should be sealing this object. If not specified, the default role is used. |
- Returns
- A standard object (POCO) with all or some of it's properties sealed
static T Crypteron.CipherObject.Protector.Unseal< T > |
( |
T |
encryptedObject, |
|
|
string |
securityPartition = Default.PartitionId , |
|
|
string |
asRole = Default.RoleId |
|
) |
| |
|
static |
Unseals an object's secured properties. The specific properties that are unsealed are based upon which properties have been decorated with the Secure attribute. Unsealing involves key management, decryption and tamper protection checks.
At present only the first immediate properties of the object will be unsealed i.e. object.prop1 versus object.prop1.prop2
- Template Parameters
-
- Parameters
-
encryptedObject | A standard object (POCO) with it's secure properties encrypted |
securityPartition | Optional argument specifying the security partition this object should be sealed for. If not specified, the default security partition is used. |
asRole | Optional argument specifying the role that should be sealing this object. If not specified, the default role is used. |
- Returns
- A standard object (POCO) with properties in cleartext