C# Runtime  0.8
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
alfa.rt.Encrypted< T > Class Template Reference

Representation of an encrypted Alfa object value. Contains a implementation specific encrypted byte[] value. More...

Inherits alfa.rt.CustomEncodedType< T >.

Public Member Functions

 Encrypted (Func< DataSupplier, T > c, byte[] encodedBytes)
 For internal use; create an encrypted object. More...
 
 Encrypted (Converters.SupplierConsumer< T > conv, BuilderConfig builderConfig, T o)
 For internal use; create an encrypted object. More...
 

Static Public Member Functions

static Encrypted< T > FromValue (Func< DataSupplier, T > c, byte[] encodedBytes)
 Create an Encrypted object using the supplied value and already encrypted bytes More...
 
static Encrypted< T > FromValue (Converters.SupplierConsumer< T > convertor, BuilderConfig builderConfig, T unencodedObject)
 Create an Encrypted object using the supplied value to be encrypted. More...
 

Protected Member Functions

override byte[] Encode (BuilderConfig builderConfig, byte[] data)
 For internal use; encode data to create encrypted value. More...
 
override byte[] Decode (BuilderConfig builderConfig, byte[] data)
 For internal use; decode data to create un-encrypted value. More...
 

Detailed Description

Representation of an encrypted Alfa object value. Contains a implementation specific encrypted byte[] value.

Constructor & Destructor Documentation

◆ Encrypted() [1/2]

alfa.rt.Encrypted< T >.Encrypted ( Func< DataSupplier, T >  c,
byte[]  encodedBytes 
)
inline

For internal use; create an encrypted object.

Parameters
cC.
encodedBytesEncoded bytes.

◆ Encrypted() [2/2]

alfa.rt.Encrypted< T >.Encrypted ( Converters.SupplierConsumer< T >  conv,
BuilderConfig  builderConfig,
o 
)
inline

For internal use; create an encrypted object.

Parameters
convConv.
builderConfigBuilder config.
oO.

Member Function Documentation

◆ Decode()

override byte [] alfa.rt.Encrypted< T >.Decode ( BuilderConfig  builderConfig,
byte[]  data 
)
inlineprotected

For internal use; decode data to create un-encrypted value.

Returns
The decode.
Parameters
builderConfigBuilder config.
dataData.

◆ Encode()

override byte [] alfa.rt.Encrypted< T >.Encode ( BuilderConfig  builderConfig,
byte[]  data 
)
inlineprotected

For internal use; encode data to create encrypted value.

Returns
The encode.
Parameters
builderConfigBuilder config.
dataData.

◆ FromValue() [1/2]

static Encrypted<T> alfa.rt.Encrypted< T >.FromValue ( Converters.SupplierConsumer< T >  convertor,
BuilderConfig  builderConfig,
unencodedObject 
)
inlinestatic

Create an Encrypted object using the supplied value to be encrypted.

Returns
The value.
Parameters
convertorConvertor.
builderConfigBuilder config.
unencodedObjectUnencoded object.

◆ FromValue() [2/2]

static Encrypted<T> alfa.rt.Encrypted< T >.FromValue ( Func< DataSupplier, T >  c,
byte[]  encodedBytes 
)
inlinestatic

Create an Encrypted object using the supplied value and already encrypted bytes

Returns
The value.
Parameters
cC.
encodedBytesEncoded bytes.

The documentation for this class was generated from the following file: