Azure.Identity.LinuxNativeMethods
namespace Azure.Identity
{
internal static class LinuxNativeMethods
{
public enum SecretSchemaAttributeType
{
SECRET_SCHEMA_ATTRIBUTE_STRING,
SECRET_SCHEMA_ATTRIBUTE_INTEGER,
SECRET_SCHEMA_ATTRIBUTE_BOOLEAN
}
public enum SecretSchemaFlags
{
SECRET_SCHEMA_NONE = 0,
SECRET_SCHEMA_DONT_MATCH_NAME = 2
}
public const string SECRET_COLLECTION_SESSION = "session";
public static IntPtr secret_schema_new(string name, SecretSchemaFlags flags, string attribute1, SecretSchemaAttributeType attribute1Type, string attribute2, SecretSchemaAttributeType attribute2Type);
public static string secret_password_lookup_sync(IntPtr schemaPtr, IntPtr cancellable, string attribute1Type, string attribute1Value, string attribute2Type, string attribute2Value);
public static void secret_password_store_sync(IntPtr schemaPtr, string collection, string label, string password, IntPtr cancellable, string attribute1Type, string attribute1Value, string attribute2Type, string attribute2Value);
public static void secret_password_clear_sync(IntPtr schemaPtr, IntPtr cancellable, string attribute1Type, string attribute1Value, string attribute2Type, string attribute2Value);
public static void secret_password_free(IntPtr passwordPtr);
public static void secret_schema_unref(IntPtr schemaPtr);
}
}