Class AuthenticationService
Inheritance
System.Object
AuthenticationService
Assembly: SensusAndroid.dll
Syntax
public class AuthenticationService : Object, IEnvelopeEncryptor
Constructors
AuthenticationService(String)
Declaration
public AuthenticationService(string baseServiceURL)
Parameters
Type |
Name |
Description |
System.String |
baseServiceURL |
|
Properties
Account
Gets or sets the account.
Declaration
public Account Account { get; set; }
Property Value
Type |
Description |
Account |
The account.
|
BaseServiceURL
Gets or sets the base service URL.
Declaration
public string BaseServiceURL { get; set; }
Property Value
Type |
Description |
System.String |
The base service URL.
|
Methods
CreateAccountAsync(String)
Declaration
public Task<Account> CreateAccountAsync(string participantId)
Parameters
Type |
Name |
Description |
System.String |
participantId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Account> |
|
EnvelopeAsync(Byte[], Int32, Int32, Stream, CancellationToken)
Declaration
public Task EnvelopeAsync(byte[] unencryptedBytes, int symmetricKeySizeBits, int symmetricInitializationVectorSizeBits, Stream encryptedOutputStream, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Byte[] |
unencryptedBytes |
|
System.Int32 |
symmetricKeySizeBits |
|
System.Int32 |
symmetricInitializationVectorSizeBits |
|
System.IO.Stream |
encryptedOutputStream |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
GetCredentialsAsync()
Declaration
public Task<AmazonS3Credentials> GetCredentialsAsync()
Returns
Implements