Skip to content

Commit

Permalink
KSM-490 - .NET SDK: Switch some internal classes to public - for use …
Browse files Browse the repository at this point in the history
…in plugins (#563)

* KSM-490 Switch some internal classes to public - for use in plugins

* Updated readme
  • Loading branch information
idimov-keeper authored Jun 7, 2024
1 parent a88a22c commit 3090e94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions sdk/dotNet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

## 16.6.6

* KSM-490 - Switch some internal classes to public - for use in plugins
* KSM-515 - Update to Bouncy Castle 2.4.0

## 16.6.5
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotNet/SecretsManager/Notation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ KeeperRecordField FindField(string fieldName)
}

// data class to represent parsed notation section
internal class NotationSection
public class NotationSection
{
public string Section = null; // section name - ex. prefix
public bool IsPresent = false; // presence flag
Expand Down Expand Up @@ -281,7 +281,7 @@ private static NotationSection ParseSection(string notation, string section, int
return result;
}

internal static List<NotationSection> ParseNotation(string notation, bool legacyMode = false)
public static List<NotationSection> ParseNotation(string notation, bool legacyMode = false)
{
if (string.IsNullOrEmpty(notation))
throw new Exception("Keeper notation is missing or invalid.");
Expand Down
5 changes: 1 addition & 4 deletions sdk/dotNet/SecretsManager/SecretsManagerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
using System.Linq;
using System.Net;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

[assembly: InternalsVisibleTo("SecretsManager.Test.Core")]

namespace SecretsManager
{
using GetRandomBytesFunction = Func<int, byte[]>;
Expand Down Expand Up @@ -1412,7 +1409,7 @@ private static TransmissionKey GenerateTransmissionKey(IKeyValueStorage storage)

[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
internal static GetRandomBytesFunction TransmissionKeyStub { get; set; }
public static GetRandomBytesFunction TransmissionKeyStub { get; set; }

private static EncryptedPayload EncryptAndSignPayload<T>(IKeyValueStorage storage,
TransmissionKey transmissionKey, T payload)
Expand Down

0 comments on commit 3090e94

Please sign in to comment.