Interface ISecureData<TValue>
Objects which contain secure/encrypted data and can be decrypted / verified.
[PublicApi]
public interface ISecureData<out TValue>
Type Parameters
TValue
Type of the value in this secure data. As of now it's always a
string
.
Remarks
This object contains decrypted data (if it was encrypted originally) and tells you if the data was encrypted, signed etc. It's still very basic, and will grow in functionality to assist in handling secure / encrypted / signed data.
History: Introduced in 2sxc 12.05
Properties
IsSecured
Determines if the data is secure data, so it's either encrypted or signed
bool IsSecured { get; }
Property Value
Remarks
made public in v17.01
Value
The value returned by the secure data - usually a string.
TValue Value { get; }
Property Value
- TValue
Methods
IsSecuredBy(string)
Determines what authority secured this secure data. This is to figure out what certificate or source verified the decryption / signing
As of 2sxc 12.05, it can only be "preset", other keys are currently not handled yet
bool IsSecuredBy(string authorityName)
Parameters
authorityName
string
Returns
ToString()
This object explicitly has a ToString, so you can use the result in string concatenation like "key:" + secureResult
string ToString()