Skip to content

Commit

Permalink
Update sonarColud comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarne committed Oct 19, 2023
1 parent 1c73f06 commit a3dc24a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ public SecretsLocalClient(IConfiguration configuration)
}

/// <inheritdoc />
public Task<byte[]> GetCertificateAsync(string certificateId)
public Task<byte[]> GetCertificateAsync(string certificateName)
{
string token = GetTokenFromSecrets(certificateId);
string token = GetTokenFromSecrets(certificateName);
byte[] localCertBytes = Convert.FromBase64String(token);
return Task.FromResult(localCertBytes);
}

/// <inheritdoc />
public Task<JsonWebKey> GetKeyAsync(string keyId)
public Task<JsonWebKey> GetKeyAsync(string keyName)
{
string token = GetTokenFromSecrets(keyId);
string token = GetTokenFromSecrets(keyName);
JsonWebKey key = JsonSerializer.Deserialize<JsonWebKey>(token)!;
return Task.FromResult(key);
}
Expand Down

0 comments on commit a3dc24a

Please sign in to comment.