Skip to content
Snippets Groups Projects
Commit 14ac0245 authored by Klaus Fischer's avatar Klaus Fischer
Browse files

Created interfaces waiting for Java declaration

parent e950702c
No related branches found
No related tags found
1 merge request!3Feature/440 mvp net sdk part 1
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=interfaces/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
\ No newline at end of file
......@@ -75,7 +75,7 @@ public class FitConnectEndpoints {
);
}
public class FunctionalBaseClass {
public abstract class FunctionalBaseClass {
private readonly ILogger? logger;
public FitConnectEndpoints Endpoints { get; }
......@@ -143,21 +143,3 @@ public class FunctionalBaseClass {
}
}
public class SecurityEventToken {
}
public interface IBaseFunctionality {
Task<OAuthAccessToken> GetTokenAsync(string clientId, string clientSecret,
string? scope = null);
Task<SecurityEventToken> GetSetDataAsync();
}
public interface ISender {
}
public interface ISubscriber {
}
using FitConnect.Models;
namespace FitConnect;
public interface IBaseFunctionality {
Task<OAuthAccessToken> GetTokenAsync(string clientId, string clientSecret,
string? scope = null);
Task<SecurityEventToken> GetSetDataAsync();
// Receive SecurityEventToken and check signature
}
\ No newline at end of file
namespace FitConnect;
public interface ISender : IBaseFunctionality {
// Check public keys
Task<bool> CheckPublicKeyAsync(string publicKey);
// Encrypt Data (Fachdaten)
Task<string> EncryptDataAsync(string data, string publicKey);
// Encrypt attachments (Anhänge)
Task<string> EncryptAttachmentAsync(string attachment, string publicKey);
// Create Metadata incl. Hash
Task<string> CreateMetadataAsync(string data, string attachment, string publicKey);
}
\ No newline at end of file
namespace FitConnect;
public interface ISubscriber : IBaseFunctionality {
/// <summary>
/// Decrypt Data (Fachdaten)
/// </summary>
/// <param name="data">(Fachdaten)</param>
/// <param name="privateKey">Your private key for decryption</param>
/// <returns></returns>
Task<string> DecryptDataAsync(string data, string privateKey);
// Decrypt attachments (Anhänge)
Task<string> DecryptAttachmentAsync(string attachment, string privateKey);
// Check Metadata against JSON-Scheme
Task<bool> CheckMetadataAsync(string metadata);
// Check Hash from Metadata
Task<bool> CheckHashAsync(string metadata);
// Create SecurityEventToken and signature
Task<SecurityEventToken> CreateSecurityEventTokenAsync(string data, string attachment,
string privateKey);
}
\ No newline at end of file
namespace FitConnect;
public class SecurityEventToken {
}
......@@ -6,7 +6,4 @@ public class Sender : FunctionalBaseClass {
public Sender(ILogger? logger, FitConnectEndpoints endpoints) : base(logger,endpoints) {
}
internal async Task EncryptData() {
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment