Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ICryptoService.cs
3
5{
9 [DefaultImplementation(typeof(CryptoService))]
10 public interface ICryptoService : IDisposable
11 {
15 string DeviceID { get; }
16
22 Task<KeyValuePair<byte[], byte[]>> GetCustomKey(string fileName);
23
29
34
41 string GenerateJwtToken(params KeyValuePair<string, object?>[] Claims);
42
49 }
50}
Contains information about a Java Web Token (JWT). JWT is defined in RFC 7519: https://tools....
Definition: JwtToken.cs:21
Cryptographic service that helps create passwords and other security related tasks.
JwtToken? ParseAndValidateJwtToken(string Token)
Vaidates a JWT token, that has been issued by the same app. (Tokens from other apps will not be valid...
Task< KeyValuePair< byte[], byte[]> > GetCustomKey(string fileName)
Returns a cryptographic authorization key for the given filename.
string CreateRandomPassword()
Generates a random password to use.
Task InitializeJwtFactory()
Initializes the JWT factory.
string GenerateJwtToken(params KeyValuePair< string, object?>[] Claims)
Generates a JWT token the app can send to third parties. The token and its claims can be parsed and v...